Accessing data from jira programatically

Mohit Kanwar January 10, 2016

I am able to access xml information of a board in browser.

 

http://jira.servername.com/sr/jira.issueviews:searchrequest-xml/<boardid>/SearchRequest-<boardid>.xml

 

I am able to access it via rest client (without passing authentication details) and in private window (without login to Jira) as well.

But I am not able to access it through Java code. It returns with a Project not found error.

 

2 answers

0 votes
Mohit Kanwar January 11, 2016

I guess that was because of an authentication error. It works fine when I provide authentication credentials through the REST client.

I am not sure how is it working without login in private window.

0 votes
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 10, 2016

Could you provide an example of Java code you use? 

Do you create a plugin or use ScriptRunner to run some code?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2016

The question is "what does your code do differently to the REST browser?". It's obviously sending something incorrect to JIRA.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events