You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have created multiple Subtask for all the parent issues.
for example (Story - Story Subtask) (Bug - Bug Subtask)
In that, I would like to show up relevant subtask create, the rest of the subtask needs to be hidden on the parent issue.
To limit issue types you can use script runner behaviours. Your behaviours should check issue type and limit subtask issue types based on that.
This is example how to limit issue types: - https://scriptrunner.adaptavist.com/5.5.7/jira/recipes/behaviours/restricting-issue-types.html
@Sebastian Krzewiński point is a good one. Can clarify your ask with a bit more information. are you trying to restrict issue types listing to be selected from when one creates sub-tasks, then ScriptRunner Behaviours provides the solution.
However, you need to know that currently Behaviours component of Script Runner for Jira add-on is not available for Jira Cloud env. It is only available for the server/DC env.
Welcome to the community. It is not possible to achieve what you are asking. Subtask(s) should only be created against parent issue as needed basis. Once a subtask is created for a given parent issue, it is going to be visible and cannot be hidden.
Can you explain your reasoning behind "created multiple Subtask for all the parent issues"?
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Infrastructure Applications Team
Please find the screenshot
I have my requirement to show up the "sub task" on parent issue only.
now you watching the screenshot from "Story" issue type.
Here i can make some restriction to create a "Bug Subtask" by Workflow Validator.
The thing is, relevant sub task only show on parent issue, it's concern about a user only.
Thanks & Regards
You have already marked "Accept Answer" associated with the other one's suggestion of using ScriptRunner.
It seems that your question is not answered. In this case, it seems that you were able to restrict the Subtask issue type listing (custom one - Bug Subtask) via WF validator. If so, then you can apply the same concept/design by
1) Ensuring that all of your parent issue types are not using the same WF. If not, clone your existing WF and apply it to your different parent issue types. Where you can adjust the Subtask issue type listing accordingly.
I am interested on what you meant by using Workflow validator to control issuetype listing. Please provide more details, so I can assist further.
The main point is that your question is still not anwsered.