Reputation: 135
I am creating one POC of Jira Plugin using atlas-SDK and while creating I found 2 Jira version 7 and 8. If I want to support both Jira version 7 and 8 in my code then I need to replace only one method each time which is getIssue. So I want to use Rest API of Jira to fetch All issues. And I want to hit this inside Scheduler.
I try one solution which is using cookie:
Below API requires JSESSIONID cookie to authenticate the call and execute the service Create Jira rest service API URL : http://10.0.8.9:8080/rest/api/2/search?jql=project='REST'
I did Rest call using HttpClient with header: ("cookie","JSESSIONID={VALUE_OF_JSONID}")
We can use this but as we want to call this API from a scheduler, there are chances that the scheduler is running even after the browser is closed. In that case, How will the scheduler get JSESSIONID in the cookie?
Any other way to access this API? please suggest.
Upvotes: 0
Views: 107