Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sub Task Automation Custom Fields Blank

Hey all,

I'm racking my brain and I've scoured the help here to no avail - I cannot determine how to get fields from a parent to a sub-task as part of automation.

I have an "On Issue Created" automation that I want to create a number of sub-tasks. This issue type I have limited for the automation has a number of custom fields associated with it.  As an example, one of these is "Employee Full Name".

I've tried *ALL* of the following to try to get that field as a variable into the sub-task generator, and all of them show up blank. What am I doing wrong??

# {{Employee Full Name}}
# {{Employee Full Name.value}}
# {{"Employee Full Name"}}
# {{"Employee Full Name".value}}

*fields.*

# {{fields.Employee Full Name}}
# {{fields.Employee Full Name.value}}
# {{fields."Employee Full Name"}}
# {{fields."Employee Full Name".value}}

*issue.*

# {{issue.Employee Full Name}}
# {{issue.Employee Full Name.value}}
# {{issue."Employee Full Name"}}
# {{issue."Employee Full Name".value}}

*issue.fields.*

# {{issue.fields.Employee Full Name}}
# {{issue.fields.Employee Full Name.value}}
# {{issue.fields."Employee Full Name"}}
# {{issue.fields."Employee Full Name".value}}

*issue.parent.*

# {{issue.parent.Employee Full Name}}
# {{issue.parent.Employee Full Name.value}}
# {{issue.parent."Employee Full Name"}}
# {{issue.parent."Employee Full Name".value}}

*issue.parent.fields.*

# {{issue.parent.fields.Employee Full Name}}
# {{issue.parent.fields.Employee Full Name.value}}
# {{issue.parent.fields."Employee Full Name"}}
# {{issue.parent.fields."Employee Full Name".value}}

*parent.*

# {{parent.Employee Full Name}}
# {{parent.Employee Full Name.value}}
# {{parent."Employee Full Name"}}
# {{parent."Employee Full Name".value}}

*parent.fields.*

# {{parent.fields.Employee Full Name}}
# {{parent.fields.Employee Full Name.value}}
# {{parent.fields."Employee Full Name"}}
# {{parent.fields."Employee Full Name".value}}

1 answer

Hi @Andrew Vaughan 

I am unclear about some of the extra characters in what you posted, and...

  • If you have a custom field named Employee Full Name which is available within an issue's scope...
  • Usually one of these will work:
    • {{issue.Employee Full Name}}
    • {{issue."Employee Full Name"}}

Smart values are case-sensitive, so I suggest finding an example issue with your field filled in, and then try the instructions in this how-to article to confirm the smart value name.  Basically, you call the REST API from a browser and then search for your field name and the data contents to confirm the name.

https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

For some automation syntax, you will still need to use the custom field ID rather than the name, so this technique will also find that information.

Best regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Bitbucket

Share your use cases: How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...

33 views 0 1
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you