{{triggerissue.fixVersion}} errors
Asked by Brandon Criger:

{{triggerissue.fixVersion}} errors and not sure why smart value does not resolve as expected. {{triggerissue."Epic Link"}} has no issues


Answers:
author: Curt Holley
body: Use {#toc-hId--492763623}
-------------------------

{{issue.fixVersions}} or {#toc-hId-1994749210}
----------------------------------------------

{{triggerIssue.fixVersions}} {#toc-hId-187294747}
-------------------------------------------------

as per: [Jira smart values - issues \| Cloud automation Cloud \| Atlassian Support](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/)

not {#toc-hId--1620159716}
--------------------------

{{triggerIssue.fixVersion}} or {#toc-hId-867353117}
---------------------------------------------------

{{issue.fixVersion}} {#toc-hId--940101346}
------------------------------------------

comments: author: Patricia Francezi
body: It can be the problem. I didnt notice the typo.


author: Brandon Criger
body: Still a little strange, but this what I was able to get to work.

One plural and the other singular.  
AND fixversion = {{triggerissue.fixversions.name}}


author: Brandon Criger
body: This is the full JQL statement I'm using. One works and the other does not.  

project = CLEAD AND issuetype = Story AND Status not in (Done,Cancelled) AND Component = "Technology Integration" AND "Epic Link" = {{triggerissue."Epic Link"}} AND "fixVersion" = {{triggerissue.fixVersion}} \[Does not work\]

project = CLEAD AND issuetype = Story AND Status not in (Done,Cancelled) AND Component = "Technology Integration" AND "Epic Link" = {{triggerissue."Epic Link"}} \[Works\]


author: Patricia Francezi
body: Hi [@Brandon Criger](/t5/user/viewprofilepage/user-id/5127883)

It would be easier to answer if you provide more details.

What's the automation, value you want to get, your scenario.

Post screenshots etx.

comments: author: Brandon Criger
body: Please see my latest post. I didn't realize I was not replying.


author: Brandon Criger
body: The error message:  
JQL search failed for some issues. This is most likely because the JQL with smart-values was not valid for this query:  
"(project = CLEAD AND issuetype = Story AND Status not in (Done,Cancelled) AND Component = "Technology Integration" AND = AND LFFX-1 = LFFX-1) AND (project in (64103))" - Error in the JQL Query: Expecting a field name but got '='. You must surround '=' in quotation marks to use it as a field name. (line 1, character 121)


author: Patricia Francezi
body: Where are you using this JQL?

The error shows a different JQL where i can see some errors
> "(project = CLEAD AND issuetype = Story AND Status not in (Done,Cancelled) AND Component = "Technology Integration" AND **= AND LFFX-1 = LFFX-1**) AND (project in (64103))"

Your intented JQL

project = CLEAD AND issuetype = Story AND Status not in (Done,Cancelled) AND Component = "Technology Integration" AND "Epic Link" = {{triggerissue."Epic Link"}} AND "fixVersion" = {{triggerissue.fixVersion}}

About the FixVersion, remember this is a list so the smartvalune need to be complemented with the property you want to pull

References:

<https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions-->

<https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-lists/>


Tags: cloud