Good day everyone.
There is a sub-task workflow, which consists of two statuses: Review and Approved. When moving to Approved from Review user should fill Decision field on a transition screen. For example, number of sub-tasks is 7. All of them have their Decision field values.
So, the question is how can I copy all these Decision field's values from different subtasks into a single custom field, let's say, Overall Decision, in parent task?
Thank you in advance.
Hi @Marco Brundel , @Fadoua ,
Thank you for answers. There is a Scriptrunner plugin in the system, but no Automation for Jira Pro version.
I recreated the rule @Marco Brundel shared, but on Automation Rules (JWT) plugin:
It works, but there is a problem. When the descision of the first sub-task "marketing approve' is edited to "marketing approve 1", the rule doesn't edit it on the parent task, it just adds it as a new decision. Example screenshot:
Is there is a way to avoid it?
Thank you in advance.
Hi @Fariz Aliverdiyev ,
Could you please give me more details about your requirement?
The following expression should work for your "Update field" action if your sub-tasks are going to have different decisions without being repeated, but if it's not the case, please let us know:
previousValue(%{trigger.issue.cf16147}) NOT IN %{selector.issue.cf16147} ? %{selector.issue.cf16147} + " " + %{trigger.issue.cf16147} : findReplaceFirst(%{selector.issue.cf16147}, previousValue(%{trigger.issue.cf16147}), %{trigger.issue.cf16147})
In order to make this expression work, be sure you selected "Advanced text" mode as parsing mode:
Hope to hear from you soon!
Best regards,
Sergio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sergio García-Consuegra _Decadis AG_
Thanks, it worked! But, yes, the field can contain same decisions, something like "ok" or "approved" and etc. Decision field is a multi-line text. Also, is it possible to add each decision on another line, not on a single line, as on my screenshot above?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Fariz Aliverdiyev ,
For this specific case, I would suggest an easier and more powerful solution, using our Calculated text fields.
toString(textOnIssueList(subtasks(), ^%{issue.cf16147}), "<br>")
Please, let us know if this solution worked as expected.
Best regards,
Sergio
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.
Hi @Fariz Aliverdiyev ,
I'm glad to hear the proposed solution worked!
If you have any other doubt related to our plugin, you can always contact us through our official support portal for customers
We will gladly help you :)
Have a good day!
Best regards,
Sergio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fariz Aliverdiyev that can be done using a plugin. Either Automation for Jira as mentioned by @Marco Brundel or ScriptRunner for Jira.
Jira out of the box doesn't offer this feature.
Best of luck
Fadoua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Fariz Aliverdiyev ,
I think it is possible with an automation rule.
Acceptance Criteria (customfield_13508) I used as a field in this example
In the edit-issue action I have
{{issue.customfield_13508}} - {{triggerissue.customfield_13508}}
put in the field.
This saves the value that was already in the field.
See this screenprint
regards, Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Only if the user has the plugin.
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.