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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Using smart value or smart variable in Automation Lookup Issues Action

Is it possible to use smart values or smart variables within the JQL statement used in "Lookup Issues" actions?

I am having trouble doing so.

I have a custom field that is a list of project keys.

I have a custom type that has that field set.

I want to find all instances of this custom type that has that custom field set to a specific value that equals the project key that the object I am creating is within.

So custom smart variable projKey is set to {{issue.project.key}}

How do I then use that smart variable in the jql in a find issues action?

My jql looks like

"Project Key[Dropdown]" = "{{projKey}}"

but it will not validate.

If I instead use a static string that is one of my project keys, the it validates.

"Project Key[Dropdown]" = "Foobar"

 

Any ideas?  Thanks.

1 answer

1 accepted

0 votes
Answer accepted

Hi @Kyle Quevillon 

Yes, you may dynamically build JQL within an automation rule, and it will not validate because the values in the smart values are unknown at the time of rule writing.

Would you please provide an image of your entire rule and JQL for the lookupIssues action?  That may give the community more information to help you.  Thanks!

Best regards,

Bill

wwalser Atlassian Team Feb 09, 2021

This is correct, JQL statements containing smart values can not be validated since we have no value to substitute in for the smart value until an automation is running. 

I'll pass a note to our technical writer who will consider adding wording calling out this fact.

Thanks for letting us know that this is confusing.

Like # people like this

Suggest an answer

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

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,047 views 8 28
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