Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×We have a process where users test against a subtask but the parent issue is used to generate some documentation.
We want to prevent users from Passing each subtask unless there is some text in a custom field on the parent issue. There can be more than one subtask in this process but only one subtask needs to provide the text to the parent issue.
I want to make it easy for users so instead of stopping users and making them go back to the parent issue to complete the field, here are the steps I think could work well:
My question is: where do I start?! Since I only do very basic code, I usually put these things together by hacking together some sample scripts but I've only found a one-way script that works in the parent > subtask direction. I'd greatly appreciate some pointers.
If you can live without the display of the parent value you can go with Bobs suggestion and than add a postfuntion which saves the entered value to the custom field of the parent issue.
Another way would be to spread the value from the parent issue to the childs with a listener (every time the parent custom field is changed write the value to all childs) and only test in the validator of Pass if the value has more than 10 characters.
There are probably a number of ways to do this. Here is one I know :).
You can add a Conditioned validator (Conditioned Workflow Functions for JIRA) to the transition that validates the the custom field has 10 characters or more. If not, the transition will be stopped and user can be given a detailed message (using Substitution variables like %parent_key%) to tell them exactly what they need to do allow the transition to proceed.
The condition regex you would need would look something like:
Condition value: %parent_mycustomfieldname% Regex pattern: .{10,}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great answers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.