Forums

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

JIRA REST API for updating several issues

Kathrin Müller
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!
August 31, 2021

Hi community,

totally new to REST API`s and need some help regarding our problem: we use categorizations in our JIRA issues which are not very helpful when analyzing in JIRA plans. For this reason we thought of transforming these categorizations into labels so we can filter the issues for these labels again in the plans. How can I get all the categorizations (currently saved in the field "project specific categorization") and save them as labels additionally to all the labels which are already assigned to the issues. So I don´t want to overwrite something - just save them too.

And last but not least: I want to do this for every issue in our project already created until now and from now on every night/every week for every new issues created. Because people will continue saving the categorization in the field categorization and not additionally in the labels field.

Does someone have any recommendations or ideas how to get there? Because I don`t...

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted
Sunny Ape
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.
September 1, 2021

Hello @Kathrin Müller 

The REST API can definitely do all that, but there is no simple explanation as to how it is done other than "For each issue in the project, GET the value of the custom field then PUT the value into the labels field"

You'll need to read through the documentation on the Jira Server REST API first, familiarise yourself with how it works and how to interact with it, either with code or with external toolsets, then practice in a sandbox environment before you attempt any of this.

Suggest an answer

Log in or Sign up to answer