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 used "/rest/auth/1/session" rest call with my credentials to get session id. and it has provided me the json like -
{
"session": {
"name": "JSESSIONID",
"value": "42424424242342434234.node1"
},
"loginInfo": {
"failedLoginCount": 6,
"loginCount": 356,
"lastFailedLoginTime": "2019-07-09T08:55:26.560+0000",
"previousLoginTime": "2019-07-11T17:42:08.837+0000"
}
}
now i want to use this session to get all tickets assigned to me in jira. how do i send this session with my other rest call to get tickets detail.
Thanks in advance.
Hi @Prashant_Shri ,
Please, refer to https://developer.atlassian.com/server/jira/platform/cookie-based-authentication/ as it demonstrate on how to set up the cookie with JSESSIONID retrieved.
Then, to get all the tickets assign to you, you could run Jira's search REST API endpoint using JQL https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/search using the JSESSION in the request header.
If you are working with a language that is not in the documentation mentioned, please specify the language and we from Atlassian Community can comment on with source code example.
Kind regards,
Rafael
What if I want to set the cookie with JSESSIONID when I make Javascript XMLHttpRequest? Is it impossible? I only see an example for Nodejs. If it is impossible, what is the correct way to make XMLHttpRequests from Javascript to Jira Rest Api?
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.