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

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,

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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

928 views 5 18
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