Forums

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

Can I add transition changed issue key(smart value) in JQL for Related issues condition?

Masudur Rahman October 20, 2019

Hi,

I was trying to get siblings issue's subtask within an epic where one of the sibling(linked with epic) status change will find sibling's subtask. And change transition to done.

Here's the jql I'm trying, but it's not working with smart values inside jql.

filter1 = 

"Epic Link" in (epicsWhereIssueIn("issue = '\"{{issue.key}}\"' ")) AND status in ("custom-status", "another-status")

 

JQL ->

issue in parent("filter = filter1")

It's not working with smart values , e.g: {{issue.key}} - transition sibling issue key.

 

But when I'm trying with plain jql. e.g:

filter1 = 

"Epic Link" in (epicsWhereIssueIn("summary ~ '\"some static matched summary\"' ")) AND status in ("custom-status", "another-status")

 

JQL ->

issue in parent("filter = filter1")

It's working , but the problem is its returning all matched summary field. I need match JQL with triggered/transition issue key inside the JQL so that I can restrict to related issue subtask.

 

Note - I'm using another plugin(jql function) to write shorthand jql.

Thanks
Masud

sample-rule-trying.png

1 answer

0 votes
Nick Menere
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.
October 21, 2019

Hi Masud,

 

What does the audit log say? Does it say the condition doesn't match or is there a JQL error?

If the the smart value is referenced in a saved filter, this wont work as the we don't ever see the underlying JQL when you run "filter = filter1"

You need to put the actual JQL into the config of the component.

 

Cheers,

Nick

Masudur Rahman October 21, 2019

Hi @Nick Menere,

Thanks for your prompt reply. Yes, saved jql filter is not working. Its giving me error:

"
Related issue condition

The following issue did not match the condition

XXXX-000

"

And what you meant by "actual JQL into the config of the component"?

Is there any specific settings for that?

And my jql is filter as follows: 

- "Epic Link" in (epicsWhereIssueIn("issue = {{triggerIssue.key}}")) AND summary ~ "\"custom summary\""

 

and I want to execute the following jql which is not working/returning jql error in automation rule condition(jql):

- issue in parent("Epic Link" in (epicsWhereIssueIn("issue = {{triggerIssue.key}}")) AND summary ~ "\"custom summary\"")

 

Thanks

Masud

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events