[request-tracker-maintainers] using attachments with rt cli

Andrew Ruthven andrew at etc.gen.nz
Mon Apr 7 01:39:57 BST 2025


Hey Sascha,

On Mon, 2025-03-10 at 09:07 +0100, topoi wrote:
> I tried something like the following without success:
> 
> $ rt-4 create -t ticket add attachment=test.json subject='test'
> # No attachment for test.json

You are very close, you need to use 'set' instead of 'add'. 'add' is used to
add additional values to a field which has already had 'set' used. Try:

    rt-4 create -t ticket set attachment=test.json subject='test'

I just tested this on my RT5 install, and it works.

And agreed, `rt help create ticket` doesn't make this obvious.

For help in using RT, you may find https://forum.bestpractical.com/ a useful
resource as well.

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
andrew at etc.gen.nz         |
Catalyst Cloud:           | This space intentionally left blank
 https://catalystcloud.nz |




More information about the pkg-request-tracker-maintainers mailing list