Change workflow on plugin update

Hi All,

I have a plugin with two different workflows described in .XML files.

Now I've added some changes to the .XML files, added some post functions in the workflow in order to update the resolution field, and on fresh installation of the plugin everything works fine.

However, if the plugin is already installed and there are some issues that are using the workflow nothing changes on the plugin installation.

Hope someone has an idea  since I am lost with this :)

1 answer

0 votes

This is what I would expect to happen, and it's a correct behaviour to be frank, as it's protecting you from potentially trashing your system.

When you load the add-on, it creates workflows, which you then use in workflow schemes.  That's fine, but workflows are not a simple thing you can just change when you feel like it.

Changing an active workflow could break the system, so when you do it, Jira either limits you to changes that do not have that risk, or requires a migration process where it asks you how to change the issue data so that it does not break.

If you want to update the workflows via an add-on like this, your add-on is going to have to do the checks and migration.

Hi Nic,

Thanks for the reply.

I understand now why it's risky to make changes, but I am not exactly sure how should i safely do the migration from old workflows to the new ones without breaking anything on the working environment.

Should I remove association between existing projects and workflow scheme and between workflows and issue types, create new workflows add the new ones to the scheme and re-associate new workflows with issue types?

Or there is some other, more reasonable way to do this?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,873 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot