I am trying to achieve Hide create subtask under more options only for Epic Issue Type, I have used script runner fragments and under the script I write following code:
issue.parentObject?.issueType.name in 'Epic'
But it seems not working, It hides create subtask for all the issue types like bug, story, etc.
Will really appreciate your assistance. Thanks
Hi @Sonal Sharma, welcome to the Atlassian Community!
Using the parentObject returns the parent issue or null if the issue is not a subtask. If it's only for Epic Issue type, you can try
issue.issueType?.name != 'Epic'
Note that the item will be visible if the condition returns true. Also, as a condition in a script fragment, if you don't specify that it applies to only one project, it will hide the action to all projects.
Thanks, @Ivan Lima for the quick turnaround! It did work for me. Can you please guide me on this as well, Really appreciate your help:
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.