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

Jonathan Hayward October 10, 2013

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
Answer accepted
Paul Greig
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 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

Jonathan Hayward October 14, 2013

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

Thanks,

Paul Greig
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 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 :)

0 votes
Jonathan Hayward October 11, 2013

Thank you; this is great!

Suggest an answer

Log in or Sign up to answer