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
Accepted answer
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
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

2,073 views 14 13
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