Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Using a variable as an additional field for creating an issue in Automation


I've been developing Automation for some time now, but suddenly I 'm trying to do some fairly easy but I can't get it to work. I must be overlooking something obvious !

Summary of the logic:

- At creation of an issue, another issue is created in another project and linked.

- I created a variable from the projectkey & name from the triggerissue.

- this variable I want to use to populate a field when I create the linked ticket. (this field is required in the other project)

As you can see from the log, I print out the variable right before the Create new issue action..

2022-06-09 14_49_29-Window.png

My json:

"fields": {
"customfield_10080" : { "value": "{{CustRef}}" }


error:  Specify a valid value for Customer (customfield_10080)


If I put the value hardcoded - pasted from the log, it works just fine.


Anyone has a logical explanation for this ????



1 answer

1 accepted

1 vote
Answer accepted

OK, never mind.

After completely taking this apart and debugging it turns out that the issue was caused by a typo in the variable. And extra space wasn't visible in the log but does matter when using the value in a select field.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,099 views 34 44
Read article

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