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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

446 views 6 7
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