Forums

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

Syntax for JQL for Lookup Issues for Custom Fields

Mahima Srivastav
Contributor
June 2, 2021

I have custom fields called "Next Assembly-1", "Next Assembly-2" and so on until "Next Assembly-10".

I'm trying to set up automation that if the value of any of these gets updated then a JQL search for all the Issues within the project whose Summary is the value of these 'next assembly' fields 

The JQL query is

project = GA18 AND (Summary ~ "triggerissue.Next Assembly-1" OR Summary ~ "triggerissue.Next Assembly-2")

 

Of course something is wrong with the syntax. Can someone help correct this?

 

 

1 answer

1 accepted

3 votes
Answer accepted
Alexis Robert
Community Champion
June 2, 2021

Hi @Mahima Srivastav , 

 

if you want your custom fields to be used as variables for your JQL search inside an automation, you should use the Smart Value syntax, for example a custom field named "Team Leader" : 

{{issue.Team Leader}}

 

You can have a look at the documentation here : https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

 

Let me know if this helps, 

 

--Alexis

Suggest an answer

Log in or Sign up to answer