I have Sub-Task Blocking Condition set to prevent closing a parent issue when any of the sub-tasks are not closed. It successfully hides the transition status, however it does not give the user any indication as to why they can't close the ticket.
How can I add messaging to indicate this? Preferably via the default message in the Status area.
Hey @Janice Castro ,
A validator instead of a condition would be perfect as they can display error messages to users to provide some context. There's only one issue with what you're trying to achieve. Jira has no similar validator available by default. For this kind of slightly more sophisticated use cases, you should have a look at common workflow apps on the Atlassian Marketplace.
Atlassian Marketplace workflow apps for Jira Cloud
Best, Max
thanks Max -- I looked into ScriptRunner as we do have that already but I am not getting the error message I set up.
We have a transition screen set prior to going to Done (to have users select a resolution) and on the transition screen I see the error message: The following validator rejected the transition: ScriptRunner Script. The configuration is invalid. Contact the app vendor that provided this workflow element.
Any thoughts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you also show us the configuration of the workflow element?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added a validator with the following script:
issue.subtasks.filter(subtask => subtask.status.name == 'Done').length == issue.subtasks.length
I was copying this tutorial scriptrunner (with the exclusion of requiring an assignee) https://youtu.be/M-IKsFFAbVE?t=183
The Done transition in my workflow is set to have a transition screen to capture resolution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Conditions don't have any way to display why they are removing the option to transition - they're designed to de-clutter - don't offer options to do things that you can't! You could use a validator instead, but these are less friendly than the condition - they would let the user trigger the transition and then scold them for trying.
I'm afraid the right answer to this is to educate your users on how things are supposed to work and review your process. Ask them why they are trying to close things that are not finished?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.