Forums

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

Transitioning issues based on linked issues based on linked issue type

Jason Sheneman October 21, 2021

I have an automation rule that looks for issue type "Feature Request" that are in "Selected for Development" status.   It then checks the linked issues in the "is parent of" link section.   It checks to see if all Stories in the "is parent of" are in Done.  If they are all in Done it moves the Feature Request to Done.    This works fine if the only issues in the linked issues are stories.   If there is also something else in there, such as a task, the rule fails.   

If I update the condition to be "some match specified JQL" instead of "All match specified JQL" it works, but also works even if all stories are not in Done.     Is there a way to make this work if all stories are in Done and ignore other "is Parent of" links?

Image1.png

image2.png

In this image I want the 3 stories in the red box (all in done) to trigger the rule to process.   Right now it fails because of the task that is also there.

image3.png

 

 

1 answer

0 votes
John Funk
Community Champion
October 22, 2021

Hi Jason,

Can you share the error that you are getting from the Audit Log?

Jason Sheneman October 31, 2021

@John Funk - There are no errors.  When I say the rule fails I meant it doesn't run as expected.   I want the rule to only process the linked stories, but it processes all linked issues.  So if I have 4 stories in Done and a linked subtask in "In Progress", the rule says "not all items are in done so not going to process" instead of "all stories are in done so process the rule".

John Funk
Community Champion
October 31, 2021

Where do you see that message?  Do you have a validate on the transition to Done?

Jason Sheneman November 2, 2021

This is just a scheduled automation rule.  This isn't a validator and there is no error.   The condition is not met because of the task issue.   It is expecting all linked issues to match the JQL in order to process.   There isn't an option to "match only the JQL".   In my example I have 3 stories and 1 task.  I want the automation rule to take action when the 3 stories meet the conditions of the JQL.   That does not appear to be possible.  The current configuration in the screen shot requires all linked issues to meet the JQL which the task does not.   Changing to "Some match" means it then matches if only one of the 3 stories meets the condition.   There is no option to "meet the requirements of just the JQL".

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.1
TAGS
AUG Leaders

Atlassian Community Events