Hi,
I have to write an automation rule to update the custom field (Batch) in Release Issue type values with the week and year numbers based on the issue release date and when I linked a single story ticket to the Release ticket Extention will be SA. If I linked two or more story tickets to the Release ticket Extention will be COM
if my Release issue type release date is 18-July-2023 then the Batch custom field should be updated as
Y23_Batch_29_SA (Single Story linking to the Release ticket)
Y23_Batch_29_COM (Multiple Stories linking to the Release ticket)
Kindly help me with this.
Thanks & Regards
Raju
Hello @V N Raju Raju
What events in Jira would you want to trigger setting the field?
Where are you getting the information about the Year and Week number for the release date of the Release issue?
Have you tried to construct this automation? If so, show us what you have so far.
Adding to Trudy's answer...If you have not started your rule yet, please review these documentation sources to create your rule, and if you have challenges, post images of your rule and audit log so the community can help.
Information for version fields in issues: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions--
How to format the dates using the format() function: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#--
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill@Bill Sheboy
I have created the automation rule as attached screenshots. Kindly review these screenshots and help me. Previously I wrote the automation rule as creating the version and updating the version release date based on the issue Planned release date field. depends on that version I have created this Batch field automation rule.
Is it required to create an API to update the Version related smart values into any custom field?
Thanks & Regards
Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The {{version}} smart value is only available for the version-related triggers: version created, updated, or released, as described here: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Version-created--updated--released
Some questions to help:
If you have the Fix Version assigned, please use that smart value to get data for your custom field, as described here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions--
If you instead want to find the release version based on issue data, then you will need to call the REST API with a web request to get all possible versions in the project, and the filter down to the one you want with smart value, list filtering, as described here: https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588
Once you have the data, you can use the smart values to directly edit the custom field by entering the smart values for the field value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
The Release version is created by issue data Which I provided on a few fields at the time of the Release IT Ticket creation. The shared data is very helpful to me to create the automation rule. I will get back here if I face any blockers to write the automation rule.
Thanks & Best Regards
Raju
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.