Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Programmatically change issue status

Daniel Garcia September 10, 2023

I'm trying to change the issue type and status on an issue. The new issueType has a workflow with different statuses to the first so both issueType and Status need to change.

Ordinarily I would use WorkflowManager and WorkflowTransitionUtil to transition the issue to the new status but no transitions exists between the old and new status.

 

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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 11, 2023

Hi Daniel,

Changing the issue type is a nightmare to do automatically, you will have to code for all the checks that Jira needs to do, code to handle any failures, and then migrate (not just change) the issue from one type to the other, meaning you'll need to change all the configuration settings for it.

Bascially, "change issue type" is not something you should try to automate - you are trying to re-write the entire "move issue" process.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events