Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update Title and Description in jira using rest services ?

Nageswara Rao Koppisetti
Contributor
May 23, 2018

I have client requirement.I have to update Title and Description in jira using rest services.

Could you please provide me corresponding rest api as well as request payload for update and Title and description.

 

Regards,

Nageswara K.

2 answers

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2018
Nageswara Rao Koppisetti
Contributor
May 23, 2018

Hi Alexey..

I have constructed requested rest service  following to update summary.

/rest/api/2/issue/10206/editmeta

This is my request payload.

{
"update":
{
"summary":"Thi is my update summary"
}
}

getting following error.

summaryResponsepayload.png

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2018

You should use PUT /rest/api/2/issue/{issueIdOrKey}

not the eidtmeta

Like BADAROUX Jean-Paul likes this
Nageswara Rao Koppisetti
Contributor
May 23, 2018

I have removed editmeta.

/rest/api/2/issue/10206


Request payload is :

{
"update":
{
"summary":"Thi is my update summary"
}
}

 

but getting below error.

{
"errorMessages": [
"Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@1440b411; line: 4, column: 1] (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"
]
}

Like Sai Avinash Duddupudi likes this
Nageswara Rao Koppisetti
Contributor
May 23, 2018

Hi Alexey.

 

Could you please provide me both cases like Title and Description .

Rest services URLs and corresponding payloads.

that should be great.

 

Regards,

Nageswara K.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2018

{"fields":{"summary":"This is a shorthand for a set operation on the summary field","description":"description changed"}}

 

PUT /rest/api/2/issue/issuekey

Like Sai Avinash Duddupudi likes this
0 votes
Nageswara Rao Koppisetti
Contributor
May 24, 2018

Thank you Alexey..

working as expected..

 

Regards,

Nageswara K.

Suggest an answer

Log in or Sign up to answer