How to restrict creation of subtask based parent issue type. ?? If its issue type 'A' i dont want people to create subtask for it. Issue type 'A' is main issue type.
In the UI itself i dont want to see a link to create subtask.
Help me !!!!!
This simple scripted validator on Create transition in sub-issue workflow could do required check:["Task", "Bug"].contains(issue.parentObject?.issueTypeObject.name)
Thanks for providing this answer Ben ....
And for those trying to get it working for JIRA 7 the syntax has changed slightly to:
@osvaldo plabst By entering Task, Story between [ ] you are limiting which issue types can be used to create sub-tasks.
For Example if you type "Epic" between [ ], you are only allowing sub-task creation under Epic and restricting sub-task creation under all other issue types.
Thanks for your answer. I have one issue in this
This script will run different workflows for different sub tasks.
in my case i have same workflow for all sub-task types how i need to modify this script.
I am trying to implement script validation for JIRA v 7.8.2
We have created specific Sub tasks ad need to restrict creation of sub tasks only under specific
Say sub task is SUBTASK A and task is TASK ONE
i have defined Workflow for SUBTASK A and am trying to implement Validator during creation.
my syntax is
I am getting required error message even when I am trying to create Sub task under TASK ONE.
Please suggest what could be wrong as I think the TASK ONE name is not getting validated.
Please use this in Validator for create transition in the workflow.
issue.parentObject?.issueType.name in ["XXXXX']
where XXXXX is the name of your parent issue type.
please make sure that there are no spaces in the name before and after the alphabets.
Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers. All alerts are ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events