The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to upload an attachment using REST API using java program

Ratna Kumar
April 9, 2018

Can someone please help me the code to add an attachment without issuekey. Using issue key the activity happens 2 times like first it is creating an issue then using issuekey it is uploading the attachment.

This i would like to avoid.

Also, i need help to setAffectedVersion in jira by using java programming.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
August 1, 2022

Hi @Ratna Kumar ,

you need an issue key in order to add an attachment. You can do that after issue creation (as post process) through a post function or a listener.

Hope this helps,

Fabio

TAGS
AUG Leaders

Atlassian Community Events