Is there a way to change issue type when I edit an issue

Hello,

Am looking for a way to automatically change the issue type if I add a component.

For example, if I edit an issue of type "A" and add a component "B", I would like the issue type to change to "B" on save.

I am aware of the complexity due to issues having different workflows with different statuses.

Am open to work around suggestions :)

Thank you very much in advance.

1 answer

1 accepted

0 votes
Accepted answer
Andreas Knecht Community Champion Jan 18, 2018

Hi Etai,

So this would only work, if the source & target issue type use the *same* Jira Workflow.  If that's the case, then you should simply be able to use our 'Edit issue' action and select the 'Issue type' field from the available fields.

Your rule would looks something like this:

  • Trigger: Field value changed with 'component' selected
  • JQL Condition: component = <your specific component B you want to check for>
  • Edit issue: Set the issue type to your target issue type

If the issue types are using two different workflows though, then this wont work.  This requires a multi-step workflow migration (potentially requiring user input along the way), which isn't feasible to do in an automation rule.

Hope that helps!

Cheers,
 Andreas

Thank you Andreas.

The issues types have different workflows.

I think I can still use your suggestion.

1. Use two different types with the same workflow.

2. Automate flipping between types based on component.

3. Automate one of the types to bypass a status.

Thanks again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,447 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you