How to use scriptrunner to notify an assignee of a completed dependency that status changed to done?

SHEHZADALI ISMAILY
Contributor
June 14, 2022

How do I setup a filter using scriptrunner that will show issues with the following conditions:

  1. linkedissue is "is depended on by"
  2. changes from status of development to done or cancelled
  3. in an active sprint

Also, need to notify the assignee on a different linked ticket that has linkedissue of "depends on" which is linked to the one that has "is depended on by" that the "is depended on by" issue has moved to done or cancelled.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Andrea Pannitti
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 29, 2022

Hi @SHEHZADALI ISMAILY,

for the first part of your question, you could use this JQL:

issuefunction in hasLinkType("is depended on by") AND (status was in (Development) and (status = 'Done' or status = 'Cancelled')) AND Sprint in openSprints()

For the second part, you have to do a script that use the previous JQL and in the script you must implement a loop that get assignee for every issue extract from the JQL and send a mail to it. For this, you could give a look to this page.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events