Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation using variable and new Parent field

Aaron Haight
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 30, 2023

I cannot figure out how to get the new "Parent" field to be populated with a variable.  I have tried "Parent" in the additional field section insteald of Parent Link, but I get an error "Data is not an Object" when running automation.  

 

jira variable.png

2 answers

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
November 30, 2023

Hello @Aaron Haight 

Welcome to the Atlassian community.

Please show us the details of the Create Variable step, and the show us the full automation rule so that we can evaluate the context.

Also please show us all the information from the audit log for the execution of this rule.

Jamie Konwinski December 6, 2023

Hi - I'm having the same issue and have tried both "EPIC Link" and "Parent" as the field in Additional Fields. Here is a screenshot of the variable I created: 

Screenshot 2023-12-06 180726.png

Trudy Claspill
Community Champion
December 6, 2023

@Jamie Konwinski 

Is that your complete rule? Where is the step where you are trying to use the variable?

Note that because the variable is created in a branch, it will have no value outside of the branch. You have to use that variable while you are still within the branch.

Like Bill Sheboy likes this
Jamie Konwinski December 7, 2023

@Trudy Claspill 

Thank you - I moved the creation of the user story up into the branch. When using the Parent in the Additional Fields, I still received the object error. However, when I changed it to use EPIC Link, it worked. Not sure why Parent is not working (as per the original poster on this thread). 

dec07.png

0 votes
Ste Wright
Community Champion
December 7, 2023

Hi @Jamie Konwinski 

What are you doing with the variable?

Assuming I'm reading the need correctly...

  • When Scheduled, create an Epic
  • And then, create a Story, and link it to the Epic

...this should work:

  • Trigger: Scheduled
  • Action: Create Issue
    • Issue Type = Epic
      • Branch: Related Issues
        • Type = Most recently created issue
          • Branch-Action: Create Issue
            • Type = Story
            • Parent = Current Issue

Current Issue refers to the issues referred to in the Branch, i.e the Epic.

---

I did also create the variable, and put it in the Story's Description field. That worked fine for me.

Ste

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events