Accessing data from jira programatically

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
Vasiliy Zverev Community Champion Jan 10, 2016

Could you provide an example of Java code you use? 

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

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

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

444 views 2 5
View question

Atlassian User Groups

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!

Find my local user group

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

Groups near you