Forums

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

Need REST API to Update Custom field value

ABF
Contributor
May 25, 2023

Hello,

 

I am new REST API call, I have situation where we have 300 JIRA Issues where 1 CF needs to be updated which is URL field where only certain portion of URL has changes.

 

For e.g. earlier all jira issues had value as https://test.atlasian.com/1233 to https://test-new.atlassian.com.

 

Please help me on how to write REST API calls with for loop so that it can traverse on all issues.

 

Best,
ABF 

1 answer

0 votes
Mohamed Benziane
Community Champion
May 25, 2023

Hi,

first you can use this API that will retrieve all the issue you need to update

https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/#api/2/search-search

Then you can update the issue using this API

https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/#api/2/issue-editIssue

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events