Is there a way (whether REST, JSON, or neither) to programmatically access Agile boards?

I am trying to work on a client that would talk to a JIRA instance and take my own spin off a Kamban (or Scrum) agile board, in which cards are moved between different lanes during the project's duration.

Is there something that can either:

1: Consume the contents of an Agile board, or

2: Allow changes such as moving a card between swimlanes?

Thanks,

2 answers

1 accepted

2 votes
Paul Greig Atlassian Team Oct 10, 2013

Hi Jonathan,

You can query Agile boards via REST, here are some example queries:

View a Sprint:

curl -u <user>:<pass> -X GET  "https://<instance>/rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId=<id>&sprintId=<id>"

View a Rapidboard ID:

curl -D- -u <user>:<pass> -X GET -H "Content-Type: application/json" https://<instance>/rest/greenhopper/1.0/sprintquery/<id>

View all Boards:

curl -D- -u <user>:<pass> -X GET -H "Content-Type: application/json" https://<instance>/rest/greenhopper/1.0/rapidview

Updating an issue status through REST API will update an issue on a board. Here is the REST documentation: https://docs.atlassian.com/jira/REST/latest/#id164500

For further references you can check: the https://developer.atlassian.com/display/JIRADEV/JIRA+Agile+Java+API+Reference

Cheers,

Paul

Question: would you happen to know what the sample calls you gave would look like in iOS Objective-C?

Thanks,

Paul Greig Atlassian Team Oct 14, 2013

Hi Jonathan,

While I cannot confirm the results I've found the following examples (with answers) for methods of converting a curl command to Objective-C:

http://stackoverflow.com/questions/8982707/converting-a-curl-command-for-objective-c

and

http://stackoverflow.com/questions/11451205/objective-c-equivalent-of-curl-request

Hope it helps :)

Thank you; this is great!

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
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

13,237 views 15 14
Join discussion

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