Forums

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

I want to call Atlassian's getIssue rest service from scheduler method of Jira plugin which also req

dhruvin shah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2019

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.

0 answers

Suggest an answer

Log in or Sign up to answer