I am using basic Jira automation to create 2 sub-tasks if the trigger issue satisfies certain conditions.
The trigger issue summary will always start with "Master: " and the sub-tasks summary must be "Android: <remainder of the parent's summary after Master: >" and "iOS: <remainder of the parent's summary after Master: >" respectively.
I have tried
iOS:{{issue.parent.summary.substringAfter("Master:")}}
after going through some community posts but this results into
iOS:
Can someone help me out with what am I missing here?
Hi @Jagz -- Welcome to the Atlassian Community!
Please try to use the {{triggerIssue}} and drop the parent part to use the information from that issue. For example:
iOS: {{triggerIssue.summary.substringAfter("Master:").trim()}}
Note I added a trim() function to handle when the trigger issue optionally has a space after "Master:"
If that does not help, please post an image of your entire rule and of the audit log for an rule execution which does not work as you expect. Thanks!
Kind regards,
Bill
Hello @Bill Sheboy ,
Please suggest me the exact value I shall use in the 'Summary' field, where my requirement is as follows.
Sub-Task's summary = {{ Parent summary + value of Custom field + Value of 2nd Custom field }} Those 2 values of custom fields will be present in the Sub-Task that is created now.
Please check the below attached snippet for your reference.
Thanks in advance Bill... :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My alternative way is :
I Created a branch after Sub-Task create component, typed the summary with the values like " Value of CF1- Value of CF2 - {{issue.parent.summary}} '' and it worked for me but I want to know whether it was fine or I can achieve it in any other ways?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @AKBAR
I note two things:
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.
@AKBAR you seem to have posted these two comments in both threads. Please look at my response in the other one: https://community.atlassian.com/t5/Jira-Software-questions/Jira-automation-for-creating-sub-tasks-not-picking-up-the-smart/qaq-p/1810344
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need to automate the creation of 10 sub-tasks for each single story, where I need the summary of each sub-tasks must have the concatenation of 3 items as below:
The Values of the custom fields will differ from one sub-task to another.
I have setup the 'Create sub-tasks' Action with the values set for Custom fields X & Y.
For each sub-task creation I need different values of X & Y Custom fields.
With the Branch rule I can only get the parent summary by using Edit Fields Action.
Please share with me the Json smart value to be used in the 'Edit fields' Action for the Sub-tasks' summary with the above mentioned '3' concatenation points.
Note: The Custom fields X & Y are used for Sub-Tasks alone but not used for 'Story'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When editing an issue in an automation rule, the location in the rule (scope) is what decides which issue is edited. There is no way to directly edit the sub-tasks of an issue, with JSON advanced edit or otherwise.
Instead, you use a branch on sub-tasks or JQL to access them. Then they may be edited.
Of note: if your custom field X and Y values are changing for each sub-task, you may need to do these sequentially, one after another, in the rule. The only exception would be if these values are somehow calculated from other fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Good day and thanks for your response Bill.
My Branch rules are working well but just trying for some compression of the rule that's it.
Please tell me how to get the value of a custom field already there for a particular issue and paste the same into the Summary...
Help me with the syntax... please.. I have tried the following syntax.
"{{issue.parent.summary}} - {{triggerIssue.fields.Custom Field X}}"
Correct me with this Bill..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Usually you may just provide the custom field's name, such as: {{issue.My Custom Field}}
When there are special characters in the name, you may need to use the custom field's ID value instead.
If you have doubts if your field is available or not, please find an example issue with data in the field, and then use this how-to article to confirm the smart value needed:
https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/
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.