You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
I have file as Inputstrteam i need to attach these file to JIRA ISSUE through rest API.I have accesstoken.I use Oauth authentication to call jira API's .
Can u please help me in this case.
Thanks in advance
Not sure this is useful, but have you seen the below KB?
Hi @Dario B
Thanks for your reply.
I have already seen above URL.That URL contains user name and password.But i am having accessToken(i dont have user name password).i have to add an attachment to jira issue through rest API from my java code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It should work the same way. You just have to pass the access token in the request header as specified in:
https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/
Pass the OAuth access token in the request header, not request body, when making requests: If you pass the OAuth data in the request body, it will return a “400 Bad Request” error for most methods. You must pass the data in the header instead, e.g. “Authorization: Bearer {access_token}“
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Dario B
In https://docs.atlassian.com/jira/REST/cloud/ Link
they have defined the Add attachment API, In that API they need attachment as multi part form request.but my side i have attachment as input stream how can i convert input stram to multipart and send them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.