How to show open sub-task to the parent user while closing Jira

Leo Nishanth Anthony
Contributor
July 15, 2024

I have enabled a feature in the workflow to prevent issues from being closed while sub-tasks are still open.

Here's the issue I'm encountering: In my workflow,

we have three statuses: Open, In Progress, and Done. Users can transition forward and backward between these statuses.

For example, from In Progress, a user can move to Done or back to Open. If there are open sub-tasks, the Done status is not shown, which is working as intended. However, the problem is that my end users, who are not from a development background, do not understand why the Done status is not visible. There's no error message or information explaining this.

My question is: How can we inform users that the Done status will only be visible when all sub-tasks are completed?

5 answers

1 accepted

2 votes
Answer accepted
Carla Ann Rowland
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.
July 15, 2024

With only tools straight out of the box --one possible  thing you can do is write an automation rule that if the sub-tasks of a parent are not in done or canceled status that it sends and email to the assignee --- and put a comment on the ticket; displaying a message pop up requires script runner to write a behavior.

Leo Nishanth Anthony
Contributor
July 17, 2024

this can be considered an work-around, i will create an automation in DC version where i can add a comment in the Jira and re-open the Jira back from closed that way the reporter knows that there are open sub-tasks in the parent

Like Vikrant Yadav likes this
2 votes
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 15, 2024

Hi @Leo Nishanth Anthony  For displaying a message on view screen, you can use Scriptrunner for Jira plugin and create Script Fragment to display message on View Message. 

If you don't have Scriptrunner plugin, then another option is to apply Validator on Done status, then user can see Done status but won't be able to transition and received an error message that complete all subtasks then only Done transition work. 

Leo Nishanth Anthony
Contributor
July 15, 2024

thank you @Vikrant Yadav  for the reply, i should've mentioned we don't have scriptrunner. 

so lets says i use validator and what is the next condition it need to fulfil, i don't see the same option sub-tasks must be closed as validator-condition. what am i missing ?

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 15, 2024

@Leo Nishanth Anthony  Do you have any other plugin like JMWE or JSU ? 
Default validators don't have any validation to check Sub-task status. 

Without plugin It's not feasible to set a message on view screen or put validator with message. 

Leo Nishanth Anthony
Contributor
July 15, 2024

@Vikrant Yadav we have JSU but i dont see any option that would help here. what am i missing if you let me know

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 15, 2024

@Leo Nishanth Anthony  Check this link : https://beecom-products.atlassian.net/wiki/spaces/JSU/pages/25680475/Linked+Status+Validator

Linked Status Validator works for you. 

I don't have Data Center instance now to test and share screenshot, but this one works for you. 

Leo Nishanth Anthony
Contributor
July 17, 2024

@Vikrant Yadav since the sub-task is linked to story via parent child relationship, this will not work but really appreciate your time and effort in trying to help.

 

Like Vikrant Yadav likes this
0 votes
jodi_klein
Contributor
October 22, 2024

@Leo Nishanth Anthony Here is another option if you don't have scriptrunner- create an automation that moves the parent back to 'in progess', adds a comment and sends an notification to the assignee.

Field value changed 

fields to monitor = Status - change type = any changes to the field value - For = transition issue

Issue fields condition

Field = status - condition = equals - Value = Done

AND: Related Issues Condition

Related issue = Children - Condition = Some match specified JQL - Status != Done

THEN: Comment Issue

Enter the comment you want

AND: Transition Issue

Destination Status = In Progress

 

Hope this helps

jodi_klein
Contributor
October 22, 2024

Automation for parent with open issues.jpgAutomation for parent with open issues1.jpgAutomation for parent with open issues2.jpgAutomation for parent with open issues3.jpgAutomation for parent with open issues4.jpgAutomation for parent with open issues5.jpg

0 votes
Maciej Dudziak _Forgappify_
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.
July 15, 2024

I am sorry, ignore this message, I didn't read that it is for DC

0 votes
Richard A_ Michaels
Contributor
July 15, 2024

Hi Leo,
You should be able to write a ScriptRunner Validator using the following expression

issue.subtasks.every(subtask => subtask.status.name == 'Done')
You can then create a custom message to let the user know they have an subtask which has not been completed.
Leo Nishanth Anthony
Contributor
July 15, 2024

thank you @Richard A_ Michaels for the reply, i should've mentioned we don't have scriptrunner 

Suggest an answer

Log in or Sign up to answer