i want to get the cookie from the browser, when i click on the transition button on view issue page.
Actually i want to perfrom the cookie base authentication.
Once i'll get the cookie then i would be able to pass it to the rest api for cookie base authentication.
We have steps on how to generate the cookie from your login session over on JIRA REST API Example - Cookie-based Authentication.
But if I understand your request, you want to be able to obtain the cookie via your browser session, say when a transition occurs. This cookie is actually getting generated when you login it Jira, and not necessarily when this transition happens.
But you might be able to use something like the developer Tools in the Chrome browser to obtain the JSESSIONID in order to do this. I took a look at my browser to see what this looks like in the developer tools after an issue transition:
But you can notice here that on that line of the JSESSIONID, the expiration is set to 'Session' rather than a specific date. These cookies always have some value for when they expire, but with a session timeout set, as soon as this session is over that cookie would expire. It isn't clear to me if you could actually use that cookie for a REST API authentication as such. Instead I would still recommend following the steps in JIRA REST API Example - Cookie-based Authentication if you want to use cookie based authentication.
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot