Can I use the REST API Plugin to edit issues

Hi

Can I sue the REST API Plugin in On Demand to edit issues such as add a custom field to exisiting issues.

Regards

1 answer

1 accepted

0 vote
Paul Greig Atlassian Team Mar 13, 2013

Hi Showkat,

If I understand your request you would like to edit existing issues including those with custom fields. An example message to update assignee, priority and 2 custom fields for the issue QA-31 would be :

curl -D- -u fred:fred -X PUT --data {see below} -H "Content-Type: application/json" http://kelpie9:8081/rest/api/2/issue/QA-31

example input data

{
"fields":
{
"summary":"CLONE - Testing label stuff",
"assignee":{"name":"harry"},
"priority":{"id":"2"},
"customfield_10010":["asdf","centre","champs","charge","confluence"],
"customfield_10071":["purple pants"]
}
}

There are a lot of other great examples of JIRA REST API available from here:

https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues

Thanks,

Paul

Paul Greig Atlassian Team Mar 13, 2013

You most certainly can :)

Thanks. Paul.,. I did come across the web link..

Just wasn't sure if I am allowed to edit any issues in On demand using this process

Regards

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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

782 views 2 19
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