Forums

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

Smart value in automation JQL

Javanshir Mustafayev _ HIT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2021

Hello,

I've an automation based on the following JQL:

project=HR and issuetype='employee' and {{issue.customfield_10205}}='Yes'

I need to filter the issues based on the {{issue.customfield_10205}} condition, it has only two values 'Yes' and 'No' I need to JQL making sure that if {{issue.customfield_10205}}='Yes' then the issues are properly filtered and other automation steps work. 

Now it doesn't work. I think there is an issue with the syntax, any help is appreciated.

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2021

Hi @Javanshir Mustafayev _ HIT 

If you were to run that JQL stand-alone in advanced issue search, it would resolve to:

project=HR and issuetype='employee' and 'Yes'='Yes'

What you probably want in your rule is:

project=HR and issuetype='employee' and MyCustomFieldName = 'Yes'

Not the value from the field...

If I am missing what you are trying to do, please consider posting an image of your entire rule and an entry from the audit log where the rule executes.  That may provide more context.  Thanks!

Best regards,
Bill

Javanshir Mustafayev _ HIT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 22, 2021

@Bill Sheboy thank mate! this worked for me, I've entered my custom field name and the JQL recognises it and works with its values. 

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events