Hi All,
Im trying to create a automation rule which will be triggered when a particular pattern version is released. Then Im trying to add this newly released version to some issues. For fetching the issues Im using JQL filter.
The rule is getting triggered correctly and Im able to fetch the issues using filter also. Butim not able to add the newly released version to these issues. Its working strange, sometimes its updating the newly released version sometimes some other version is updating.
I was trying to achieve it through smart values, but not able to figure out how I can write this one. Need the smart values which will add the newly released version to Affects Version/s field, if already some values are there in the field then I need to append the new version to it.
Hi @Sreedevi Kr
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
To add the additional values to the Affects Version field, try using advanced edit with JSON rather than setting the values from the field dropdown list in the Edit Issue action:
https://confluence.atlassian.com/automation/advanced-field-editing-using-json-993924663.html
Kind regards,
Bill
Hi Bill,
I have attached the rule screenshot in the above comment please check.
We first tried it to achieve through listener script, and values where updating correctly. But after updating the values if some one manual edits the field the updated values are automatically vanishing. So thats why we are trying it through automation rule and with this rule we didnt faced the issue of vanishing the updated values. But as Im new to automation rule, I was not sure how to add the advanced edit.
I will check the link shared by you.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that image of the rule.
Please also provide images of the Edit Issue action's details and of the audit log details showing the rule execution. Those will help clarify what is happening.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I have referred the link and created JSON
In audit log its showing like some issues got edited and in other issues it failed
When I checked one of the edited issues Im not able to find any new version is added.
I have released the version shown in below image
But in the issue its not getting updated. Is my JSON having some issues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I think I have found the issue with JSON. Now Im using
{
"update": {
"versions": [{
"add": {
"name": "{{version.name}}"
}
}]
}
}
Its working fine as of now. Im checking whether its updating all the issues listed by the JQL filter.
If its passes all test scenarios then will prepare one document regarding this in community.
Thank you for helping me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I have done the testing and its working fine. But I got one error "THROTTELED".
this is what I found in log file. I am trying to update 57 issues.
Please let me know if you have any findings regarding this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using Jira Cloud, not Data Center, and so have no experience with rule throttling in those Jira sites, and...
The service limit shown in the log matches the default, maximum value of 3600 seconds per 12 hours: https://confluence.atlassian.com/automation/automation-service-limits-993924705.html
Have you been testing your rule so much that the processing time exceeded 1 hour (i.e., 3600 seconds)? You may review the audit log entries to confirm this.
If so, now that your rule is working you may need to wait until running the rule again. And again, with me having no recent experience with Data Center version, I would advise against modifying that limit through settings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreedevi,
Can you share the entire rule here? Along with screenshots of the relevant detail steps?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
Here Im triggering If version with particular pattern is getting released and Im using jql filter to fetch issues where I need to update the latest released version. But sometimes only its getting updated with latest one.
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.