Forums

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

Automation: using testExecutionTests in JQL

Deleted user June 13, 2019

Hello,

We have 2 plugin of Jira: XRAY anf Automation

I would like to create a rule in automation for the purpose of changing the status of all test that belong to a test execution according to the the test execution status.

However, the command 

issuetype = 'Test' and issue in testExecutionTests({{issue.key}})
is not valid. 

What can I use instead of {{issue.key}}?

If I use a concrete issue key e.g. 'AB-123' in place of  {{issue.key}}, it worked.

Here is the rule in question:

2019-06-13 16_21_11-Project automation - Jira.png

Thanks,

1 answer

1 accepted

0 votes
Answer accepted
Scott Harwood
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.
June 13, 2019

Hi Lionel,

 

What you have is fine. The (x) over the validate query just means that we cannot validate a query with smart values, as the values are populated at run time. 

The rule will execute as if you used the concrete issue key, although you may need to uncheck the "Only include issues that have changed since the last time" checkbox.

Hope that helps.

 

Scott.

Deleted user June 14, 2019

Thanks Scott Harwood for your response,

Yes, I've been just blocked by seeing the (X), it worked.

Best regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events