Forums

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

How to add some information to description (Jira REST API)

Darik ____
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 4, 2019

Hello, how to add some information to description of the issue without removal any data?

I am able only to update a description  but I need to add more information to original text.

 

 

I use postman and Jira(v8.4.2)

{
"update": {
"description": [
{
"set": "Need to add more information "
}
]
}
}

 

Thank you.

1 answer

0 votes
Warren
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.
December 4, 2019

Hi @Darik ____ 

The way that I do that is to run a GET call on the issue, extract the Description, edit or append what I want to get the full new Description, then do the Update as you've shown above

Darik ____
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2019

Could you provide me with an example please?

Warren
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.
December 5, 2019

So initially I do this call

/rest/api/2/search?jql=key=ABC-123&fields=key,summary,description

which returns minimal info, but allows me to get the current Description (held in a string variable).

I then change the text of the variable to what I want it to be and then use a PUT call with

/rest/api/2/issue/ABC-123

passing in the Description much like you show in your question

Like Shelby Rothman likes this
Shelby Rothman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2022

Thank you this is helpful

Suggest an answer

Log in or Sign up to answer