Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation

Shari Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2023

I have a custom drop-down field titled "Post-Deploy QA" with the options of "Yes" and "No". I want to set up an automation rule where:

When "Post-Deploy QA" is set to Yes and the Resolution of the ticket is set to "Done", create a new ticket with the custom issue type "Smoke-Test" that copies the original's ticket summary, description, and user field values. 

Here are the components that I've used for the rule:

 - When Value Changes For "Post Deploy QA"

 - Then" Create a new " Smoke Test" in Same Project 

 - Resolution equals Done

My issue is the "When" component. Instead of being "when value changes," I would like it to be "When value changes to yes."  I'm unsure if Jira has that option available. Does anyone know?

Also, I'm receiving errors when the rule is executed. I checked the Audit log, which states, "Error while parsing additional fields. Not valid JSON." What could be the issue? 

Snag_67a86cf3.png

1 answer

0 votes
Bill Sheboy
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.
November 29, 2023

Hi @Shari Brown 

The issue field changes trigger only detect the changes and not the values.

After the trigger, you may add Conditions to check the values before the rule proceeds: https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/

I also see the audit log is showing an error for invalid JSON in the action.  Would you please show an image of that action?

Kind regards,
Bill

Shari Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2023

Yay! That worked. Thanks Bill! One more question that maybe you can assist with. I would like the summary of the ticket that is being created to start with "Smoke Test" followed by the summary of the original ticket.  Do you know if that is possible? 

Like Bill Sheboy likes this
Bill Sheboy
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.
November 29, 2023

I am glad to learn that helped!

For your next question, when creating the new issue you may reference the smart values of the trigger issue, as described here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Specifically to do what you asked, try entering this in the Summary during the issue create action:

Smoke Test - {{triggerIssue.summary}}

I put a dash in there as a delimiter, so change it as needed.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events