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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Choosing which project(s) to create issues in using a custom label field

I have a similar question to I'm using Automation for Jira to create new items and dynamically selecting the board(s) on which new item(s) should be made using a custom labels field. That looks like this:-


The comment action is only for debugging purposes which confirms that the smart value does indeed contain the key of a valid project. However, when the rule attempts to create an item in this project, the Create Issue action returns the following error- 

Error creating issue
Specify a valid project ID or key (project)

Is this a bug in the the way the automation is implementing the Create Issue API method? I'm assuming that the Create Issue action would default to trying to create with "key" : {{productSuite}} instead of "id" : {{productSuite}} if the value is non-numeric but is this actually the case? I tried using the project's ID instead and this successfully created the item.

2 answers

0 votes
Curt Holley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 27, 2021

So {{productSuite}} equates to a custom field with the Keys of certain other Projects as it's values, is that right?
Then you want the automation to use whatever is in that field as the destination project of the Bug the automation is creating....I'm I still on the right path here??

If so, wouldn't be {{issue.productSuite}} or {{triggerIssue.productSuite}} ?

{{productSuite}} is a variable produced by the Advanced Branching branch that the actions are being executed within-


The {{issue.PRODUCT SUITE}} field is a custom label field. I'm branching like this so that for each label, the branch will be executed.

Like Curt Holley likes this

I have a really hacky workaround for this which really makes me think that this is a bug in the way the automation is implemented. By using the Lookup Issues action I can find items using the project key and then use the project id from a lookupissue to create an item.


I don't really like this solution though!

One extra note on this- when Lookup Issues returns multiple items, the resultant string constructed in {{}} is a comma separated list of the id of all of the items. Instead, I used {{}} which functions correctly regardless of how many items exist in the target project.

Allen Samson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 29, 2021

Hi there,

This looks like a tricky problem that we’ll need to look at more closely. It’s best if you raise this problem through the support portal at and we can get a closer look.


Hi Allen,

Having investigated this further, I'm fairly sure there is an issue along the following lines-

  • Automation for Jira exposes the ability create items via the Create Issue API
  • This method requires that a valid key or id for the target project is set (hence the error that is passed back to me, the user, when the automation fails)
  • Automation for Jira's implementation of this API method is such that it will always specify project by id
  • When creating an issue by "key", the key is only being displayed in the GUI when in fact the back-end post to the Jira API is using the id

ie. Creating an issue from key is not possible in the Create Issue method within Automation for Jira.

I am not a site administrator in my org so cannot raise support requests to Atlassian. Does this need to follow that process in order to be raised to a backlog for the product? I don't expect that this is a large enough concern that it will be fixed so I am already looking at ways to work around the problem.

Like Curt Holley likes this
Curt Holley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 30, 2021

Nice one @Callum Clarke  that makes sense.

You could likely workaround this by If/else statements around each potential result from your variable and then put each corresponding Project key in place in the Create issue action. 

But that sounds a bit tedious :-(

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events