How to Automate the Risk Status Update when the Risk has been Modified/Updated?

As a risk manager, you may wish to track the changes to a Risk status. You may want to track the progress of a Jira issue state and/or display the status in your Risk Table (see https://softcomply.atlassian.net/wiki/spaces/SS/pages/1590132751 ). This can be achieved by automatic background scripts that do it for you. By automating it, you won't miss any updates or any special notifications.

Problem/Challenge:

  • Automated updates of Jira issue status

Value:

  • Get notifications when Jira issue status changes

  • Your filters that are created based on status are working

  • Your status based dashboard gadgets are always correct

Solution with CPrime Powerscripts:

Prerequisites:

Solution:

Create new SIL Listener (event listener) to listen to the issue update events and if correct event is detected the transition to a specific workflow status is executed. Event type (Issue Updated, Generic Event, etc) should be specified by looking into workflow post functions. Dependant on workflow settings it can vary.

Let’s say that we have the following risk workflow:

The process requires that if an issue is in the “Mitigated” status and someone changes the issue, it will be sent back to the beginning i.e. to the status “New Risk”. The transition name is also called “New Risk”.

Step 1. Add a new sil script file (in this example update_issue_status.sil)

Step 2. Add the script content:

Script sourcecode:

if(key.status=="Mitigated") autotransition("New Risk", key);

Step 3. Create the SIL Listener. Listener will use the previously created script and will be executed on Issue Updated event.

Step 4. Test for the desired result!

Make a change in the Risk Table (change an issue) and see if the status is changed!

Success!!