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?
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vikrant Yadav we have JSU but i dont see any option that would help here. what am i missing if you let me know
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry, ignore this message, I didn't read that it is for DC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leo,
You should be able to write a ScriptRunner Validator using the following expression
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.