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

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 Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

66 views 0 3
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot