Changing an issuetype via transition, JIRA gets confused after another transition.

Ronny Tsee November 12, 2018

Hi there,

I have a service desk and created a custom workflow.

I have added a post function where a transition changes the issue type.

Once the issue type is changed, the workflow also changes.

However when I resolve the issue, it gives me transitions that are not linked to the status,

Can you help diagnose this?

 

JIRA1.jpg

 

5 answers

1 vote
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2018

Changing the issue type field should only be done if the workflow doesn't change. And even then, it's a dangerous proposition because there might be required fields on the new issue type that are not required in the old. 

JMWE doesn't currently offer a "move issue" post-function, which is really what you would want. 

But in general, moving an issue is not necessarily a good idea for traceability reasons. You might want to clone the issue instead. 

Ronny Tsee November 12, 2018

Thanks David I will propose this to the team

Raina Anand April 17, 2024

Does a 'move' issue exist now? 

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.
April 18, 2024

No, because the change of issue type is structural, it would damage or destroy the issue if done during a workflow action.

"Move" is something that should only ever be done by hand (albeit bulk-move is fine), because it usually affects the structure of the issue.  The only time you could do it automatically and safely is if the target project/issue-type has identical configuration to the current one.   Same workflow, same custom fields and field configurations.  (Different screens won't break it but may lead to odd behaviours). 

Imagine the case in which you will destroy the issue - if you move an issue to a project/issue-type combination that is using a different workflow.  As soon as you have completed the move step, you now have an issue that cannot complete the rest of the transition because you've changed the workflow.  

0 votes
Raynard Rhodes
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.
November 13, 2018

You mentioned the Issue Type changes. What does the Issue Type workflow look like for the second one?

Ronny Tsee November 13, 2018

The second workflow is the one attached in the previous replies.

The initial workflow is:

JIRA3.jpg

The options after the change works fine, the transitions from there are correct, the wrong transitions appear only after I resolve the issue.

0 votes
Yogesh Mude
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.
November 12, 2018

HI @Ronny Tsee

Please check which workflow is associated with the Service Request Issue type.

Ronny Tsee November 12, 2018

The associated workflow is correct.

0 votes
Raynard Rhodes
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.
November 12, 2018

It seems your transitions are not matching the workflow.

 

It's interesting, can you show all transitions in your screenshot?

Ronny Tsee November 12, 2018

JIRA2.jpg

0 votes
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.
November 12, 2018

Hello,

For what plugin is the post function, which changes the issue type?

Ronny Tsee November 12, 2018

The add-on am using is JIRA Misc Workflow Extensions

Suggest an answer

Log in or Sign up to answer