Opened 11 years ago

# Ability to specify the author and creation time for ticket attachments

Reported by: Owned by: Thijs Triemstra osimons high XmlRpcPlugin major Thijs Triemstra 0.11

### Description

It's currently not possible to specify the creation time or author for a ticket attachment. The attached patch should fix this problem.

### comment:1 Changed 11 years ago by osimons

Hmm. Perhaps adding an attributes={} parameter to the end of the signature? That could then contain author and time_created keys? Ideally I would also like description to be in that dictionary, as unlike the other parameters it is just an optional extra.

Technically it would perhaps be possible to change description to attributes, and then (at least for a time) test the input - if input is a string then save as description, if it is an dictionary then update whatever attributes it contains or use any default values (like req.authname).

### comment:3 Changed 9 years ago by osimons

Priority: normal → high

With #5445 + #3988 completed, the same principles should be applied to ticket attachments too. Should add 'author' and 'when' as optional arguments at the end (no need to break the API), and also add test(s) to make sure it works.

### comment:4 Changed 6 years ago by Olemis Lang

See these tickets for a similar problem solved using a different approach (still WiP) .

### Modify Ticket

Change Properties