Is there a way to pull a custom field from the main issue like “Assigned Tester” to populate the Assignee field within a subtask?
I have an automation that creates several subtasks and I need the Assigned Tester field from the the issue to populate the assignee of the subtask. Right now I'm triggering the automation manually based on the person who triggers the automation (which is the assigned tester right now). I have attached an image of what I have right now, any help would be awesome!
.
more info on advanced editing and smart values here https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
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.
@Ryan M I cant get this to work for some reason using the smart values. It keeps telling me in the log "Assign issue: Issue was already unassigned" and leaves it unassigned.
Not sure if I'm taking the most direct path to make this , but this is what I have.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Bobby Moyini
Yeah I believe you might have to use the more options-->advanced form with JSON for this.
The exact syntax would be as follows:
{
"fields": {
"assignee": { "id": "{{issue.customfield_10102}}" }
}
}
Also, you don't need to do a branch. You should be able to set the values in the initial "Create New Subtask" action like this:
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.
Great!
Trigger: Manual
Condition: Assigned Tester is not Empty
Action: Create Subtask
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Action: Create Subtask
I don't get the bolded options after selecting copy from parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Click the three ellipses next to the end of the Copy from Parent.
Select Copy
Click on the text Copy from and you will see the following to select the field to copy the value from.
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.
I trigger them manually for now and have it check to see if assigned tester exists before it goes through the workflow to make sure unassigned tasks aren't created. The triggers for automation appear under the actions menu in the specific Jira task you are looking at (on the top right).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great!
Trigger: Manual
Condition: Assigned Tester is not Empty
Action: Create Subtask
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the solution. ^^^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bobby Moyini - did you try this solution??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Action: Create Subtask
I don't get the bolded options after selecting copy from parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Click the 3 dots menu next to the field and choose Copy. Then you should be able to do the next.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.