{{triggerissue.fixVersion}} errors

Brandon Criger March 1, 2023

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

3 answers

1 accepted

0 votes
Answer accepted
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.
March 1, 2023

Use 

{{issue.fixVersions}} or 

{{triggerIssue.fixVersions}} 

as per: Jira smart values - issues | Cloud automation Cloud | Atlassian Support

not 

{{triggerIssue.fixVersion}} or

{{issue.fixVersion}}

Patricia Francezi
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2023

It can be the problem. I didnt notice the typo. 

Brandon Criger March 10, 2023

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}}
0 votes
Brandon Criger March 1, 2023

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]

0 votes
Patricia Francezi
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2023

Hi @Brandon Criger

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. 

Brandon Criger March 1, 2023

Please see my latest post.  I didn't realize I was not replying.

Brandon Criger March 1, 2023

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)
Patricia Francezi
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2023

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/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events