Workflow transition audits

dsaveri February 25, 2025

So I'm trying to perform a bunch of audits (on the current issue as well as the parent of the issue and all of their fields).. i.e. is it filled out, if field a has 123, field b needs 321, etc, etc. upon a workflow transition an audit is performed...(FYI transition a--> b is going to be a different audit than from b--> c..)

My current implementation is a jira cloud scriptrunner listener that has a conditional as well as supporting logic to have the listener end if it doesnt meet the specific issue type and workflow status. 

The current issue Im seeing is that the user / developer can transition to a status and would "walk away" thinking its completed and made the transition.. Thoughts on how to solve this.. is there something i can use in conjunction to the the listener.. or do this in a completely different way?

2 answers

0 votes
David Nickell
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.
February 25, 2025

So many opportunities :-) ... 

What if your script runner set a flag (or label) that indicated all the criteria for a transition were complete?  Each time the ticket is updated, your scriptrunner would evaluate the ticket. That could be set up with automation.

Once all the dependencies have been satisfied, the scriptrunner would set the flag to true for this specific transition.   Then your workflow need only check (in a pre condition) whether the flag is set to "okay".   

A cool addition   -- you scriptrunner can set a flag to true or false -- but it could also set it to something like "error".   Then create a filter that identifies any ticket in error status.  Use the filter to create a dashboard or daily subscription. 

To take it even further, if the flag is okay -- allow the transition (pre condition).   If the flag is not okay, have a transition available that presents a screen where the missing data can be provided.   It should then be clear to whoever is trying to transition the ticket what the issue is. 

Be sure to address a case where something goes backwards in the workflow.  

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2025

Hello @dsaveri 

Is there a reason you are not using the Validator feature within the workflow transitions for this? If an issue doesn't meet the rules of the Validators then the transition will not be completed and a message can be displayed to the user about the validations that have not been met.

dsaveri February 25, 2025

i guess i should of called that out.. the audit is complex, so I would like the user to understand which of the 50 check points is not allowing the audit to pass, so they know exactly what to go fix.

Like David Nickell likes this
David Nickell
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.
February 25, 2025

I love this -- so have a dedicated "Audit" label field that either carries audit issues or carries some list of audits passed.  (for example -- you can't close ticket as done unless time has been reported.   Your audit label field could contain a short label "NoTimeReported".   It may be a little cryptic -- but it would let you add new audit conditions dynamically.    

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events