When a Service Management customer answers an already resolved (and closed) ticket, it’s often desired that the ticket is reopened in order to agents be able to work on the customers' request.
This can be accomplished by using Jira Service Management automation and a custom workflow transition. The Automation tool inside Service Management already has a template to do this, however, if you’re using a custom workflow for your issue types, then it might not work out of the box and some customisation must be done.
The first thing to verify if your workflow has a transition from the Closed to the Open status. To do this, follow the steps below:
Go to your Project settings > Workflows
Click on the pencil icon to edit the workflow of your issue type
Click in text mode and verify if there’s a transition in the Closed status, as in the image below:
If the transition does exist, then you’re safe to create the Automation rule. If it does not, then you must create it.
It is not possible to add outgoing transitions to an active workflow. To do this, you must create a copy of the workflow and edit the newly created copy. Follow the steps below to do this:
Go to your Project settings > Workflows
Click on Copy and fill the new name for your workflow – you’ll be redirected to the workflow edition screen
Click on + Add Transition:
in the From Status, you set the name of your Closed status
in the To Status, you set the name of your Open status
in the Name, you set the name of the reopen transition, like Reopening Ticket
add the new transition
Go to your Project Settings > Workflows > Add Workflow > Add Existing
Select the newly created and edited workflow > Next
Associate with the desired issue types – preferable with the same issue types of the old workflow, before adding the new transition
Now that you’re set up with the reopen transition, you need to add the automation rule. As commented above, Service Management already has a default template for that that we can use. The step to do this is very simple:
Go to your Project settings > Automation > Legacy automation
Click in Add Rule > select Comment re-opens issue
Edit the fields accordingly:
Issue Matches – change the status name to the name of your Closed status
Then do this – change the transition name to the name of the Reopen ticket transition that you created – or confirmed that exists – before
Save the rule
Now, you should test the changes that we’ve just made to confirm they’re working as expected. We recommend you creating a test ticket, closing it up and then comment via email.
If didn’t work as expected, you can verify the Automation rule logs.
Go to your Project settings > Automation > Legacy automation
Click on the […] button, in the rule name that we’ve just created
Click on View log
If the rule show execution error or failed, click on Show Details to verify the reason it failed
Rodrigo Baldasso
4 comments