Forums

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

Help with a linked issue rule please

Patricia Francezi
Community Champion
March 10, 2023

My scenario: 

- I flag the issues when there is a linked issue type Blocks is added to an issue 

- There are scenarios where one issue is blocked by more then 1 issue. 

I made this rule and this works fine when is a 1 to 1 scenario, but there is caveat when having more then one blocking one issue. 

I could not figure out how to fetch / check if both linked issues are closed, then the rule could run and remove the flag from the issue. 

For this I request help, please 

image.png

2 answers

1 accepted

0 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
March 15, 2023

@Patricia Francezi 

As we discussed on slack, try the following rule :)

the rule.png

Patricia Francezi
Community Champion
March 15, 2023

Thanks @Alex Koxaras -Relational-

SSaved my day and removed my nightmares with this!!!! 

5 votes
Fernando Eugênio da Silva
Community Champion
March 10, 2023

@Patricia Francezi 

 

You need to add a new condition after your first condition with the following requirement:

Related Issues condition
"related issues" > Linked Issues
"Link types" > blocks
"condition" > All match specified JQL

JQL: Status = Closed

Patricia Francezi
Community Champion
March 11, 2023

Hi @Fernando Eugênio da Silva 

Thanks for your answer, but it didnt had the effect expected. 

- The rule didnt remove the flag after moving the blocker issue to done - its ok

- The rule didnt remove the flag after moving the second issue to done - its not ok

Sounds that the linked (the blocked) issue was not found / touched in this way

Follow the screen shot

image.png

The 1683 is the issue flagged, and the last time the rule touched it was yesterday, with the old rule

image.png

 

Any other idea?

Like Dave Liao likes this
Fernando Eugênio da Silva
Community Champion
March 13, 2023

@Patricia Francezi 

In fact, I believe you are missing including "is blocked by" in your "related conditions" and in your "branch".

This is because with the exception of "relates to", the other types of links have input and output vectors. blocks > is blocked by / causes > is caused by, etc.

 

Also, assuming my current issue is also flagged I've added a last branch to current Issue. See the rule:

Screenshot_107.png

Try to consider the values "blocks" and "is blocked by" in your branch and in your "related issues condition"

 

Let me know if it works for you

Patricia Francezi
Community Champion
March 13, 2023

Hi @Fernando Eugênio da Silva 

THanks again, but the case is - I do need to look only to blocks links. 

If I look to blocked by, Im transitioning the issue that has the flag itself to done, Its not the scenario. 

I will listen transitions made in every issue, but the rule should be triggered only if that issue blocks something else.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events