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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 21, 2018 in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

1,243 views 10 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