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?
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.