PostFunction to update EpicLink Status based on the current status of the EpicLink

Christina Hiller July 22, 2019

Objective:

  • When transitioning a Story to Status = In Progress
  • I want to update the status of the Epic Link to Blocked
  • If the Epic Link Current Status = Done
  • And if the Issue Previous Status = Done

Can JSU handle this in its JQL Precondition?

This query works accurately in the JQL search: 

issueFunction in epicsOf("key=fsd-6035") and status =  done

In the JQL Precondition, the FSD-6035 should be which ever issue key that is being transitioned

 

I tried both of the following with no luck.

  • JQL Expression: issueFunction in epicsOf("{issue.Issue Key}") and status = done
  • JQL Expression: issueFunction in epicsOf("key={issue.Issue Key}") and status = done           

jql precondition.png

Any thoughts on how to achieve my goal using JSU or other standard JIRA functions?

 

2 answers

0 votes
JD December 2, 2021

It works with issueFunction in epicsOf("key={issue.key}") and status = done

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2019

Hello Christina,

I understand that you would like to transition the related Epic to Blocked WHEN ANY related story is transferred from Done to IN PROGRESS if the Epic previous status was DONE. Is it correct?

I believe that you are not able to implement issueFunctions directly in JSU post functions, however, your need can be easily implemented by using Automation for JIRA with the following rule:

Screen Shot 2019-07-26 at 18.48.19.png

This add-on has 300 free executions per month. Please, let me know if this option helps.

Suggest an answer

Log in or Sign up to answer