Need a Automation rule to populate the "External Fix Version" based on the "Fix Version".
If we give the version as "AKA_100" in the "Fix Version" then in the "External Fix Version " it should populate the version as "AKA_100_DONE".
Like this we have around 30 fix versions and 30 external fix versions. Based on the Fix version the external fix version should change in the ticket.
Can anyone suggest the idea on this.
What is the type of your "External Fix Version" field? For example, is it a Single-Select Version Picker?
If so, the version must be set using the id and not the name of the version.
And, do you only expect one-and-only-one value in the Fix Versions field, as that is a list of values?
Kind regards,
Bill
Hi @Bill Sheboy ,
=> Type of "External Fix Version" field is Multiple-Select Version.
=> In "Fix version" and "External Fix Version" there are a list of values present. Based on the "Fix version" value the appropriate value from "External Fix Version" should populate using Automation.
=> Can you give the Automation rule to set using ID instead of name of the version.
Regards,
Asmath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that information, as it indicates one-to-many values in both fields.
Should the "External Fix Version" always contain all of the values in the "Fix Versions" field?
If the fields should have the same values, you could simply use the COPY option for the field:
If the fields could have different lists of values, the rule will need to implement any decision making you need, and then use list iteration and build a dynamic JSON expression to set the field under "More options" for the issue edit action:
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 , thanks for your valuable information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I recommend first trying to create the rule yourself, and if you run into problems to ask the community for help.
You will better understand the criteria for the handling of the different version values, and so we would need to see that logic to compare to your rule.
Additionally, I note you seem to be posting several questions and asking the community to just write rules for you. Perhaps meet with your Jira Site Admin to ask for their help to learn more about writing rules.
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 , thanks for your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The rule you show is trying to copy the values from the Fix Versions field to the External Fix Versions field, adding _DONE to the version names.
Have you confirmed those additional "_DONE" versions already exist?
How many versions are in the Fix Versions field: 1, many, or do not know?
If the number of versions is anything other than 1, the rule will need to use dynamic JSON, as I described earlier.
First, you may remove the created variable for this scenario, unless you want to write it to the audit log for testing.
Next, the Edit Issues Field should remove the External Fix Versions field from the dropdown list, and instead use dynamic JSON:
{
"fields" : {
[
{{#issue.fixVersions}}
{ "name": {{name.concat("_DONE").asJsonString}} } {{^last}},{{/}}
{{/}}
]
}
}
How this works:
When you implement this rule, I recommend testing it carefully, and then pausing to teach it to another team member. This will help you confirm your understanding of the rule by answering their questions about it, and to share the knowledge on the team.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Asmath Basha ,
assuming the "External Fix Version" is a version picker and the "External Fix Version" versions are the same as "Fix Version" extended with a "_DONE". Then you could set up the automation like this:
Of course new versions need to be created to both version pickers, otherwise the rule may run into errors.
I hope this helps you to set it up. Let me know if you have questions.
Best regards
Noah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Noah Leu , I have followed the steps which was mentioned by you. Still It doesn't populate the values in "External Fix Version" based on the "Fix Version". Can you help me on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Asmath Basha ,
sure I can help you on this. 😉
I made it work on my side. Can you share some screenshots from the automation you have build? You can also check the audit log (top right when editing the automation rule) of the automation rule to find the mistake. Here are some things you can troubleshoot in advance:
Best regards
Noah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Noah Leu ,
Kindly check the automation rules which I have setup and suggest the changes to work on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Asmath Basha ,
the setup looks good to me. Could you run a test by adding a log action before the edit action, then change a fix version to trigger the rule and then check the audit log for troubleshooting. Like this:
If you notice any strange behaviour or details let me know.
Best regards
Noah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Noah Leu , I have added log action and attached the screenshot. In the Audit log everthing looks fine but you can see in the ticket the value was not added.
Can you look into this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Asmath Basha ,
could you confirm that both versions already exist? The automation can not generate new versions. Bother version have to be already existing.
Best regards
Noah
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.
Hey @Asmath Basha ,
as I can't reproduce your error and can't double check this you may want to double check with your Jira admin. Somehow the value does not get correctly copied into the External Fix Version Field.
Best regards
Noah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.