Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,119
Community Members
 
Community Events
165
Community Groups

How to show a certain issue type for some task or Story

Hello,

I hope everyone is doing fine. I have created new issue type by the name of "Story Bug" and it is sub-task level issue. The idea behind is that within the story I'll be able to see the bugs reported. This works perfectly for story and the sub-tasks shown within that story. 

If instead of story, user created a task and sub-tasks below and want to create a bug as well. I'll create a new issue type by name of "task bug" but I want that issue type to show only when user selects tasks. 

I want story bug to show only when story is selected and task bug when task is selected. Screenshot (27).pngIn the picture above, the parent type is Story and Story Bug is created. When User selects task instead of Story I want to show the Task Bug instead of Story Bug.

I hope I have made my question clear.  

1 answer

1 accepted

0 votes
Answer accepted
Alex Koxaras Community Leader Jun 09, 2022

Hi @Hizkeel Khan 

If your deployment type is CLOUD indeed, then I'm sorry to be the bearer of bad news, but you can't do that. If you were on Jira Server, you could easily do that with Scriptrunner's behaviours.

What you can do in your case is to add a validator in each subtask's workflow. This validator will check the parent's issue type:

  • On the story bug workflow: If the parent is story -> allow to create story bug subtask
  • On the subtask workflow: If the parent is task -> allow to create subtask

Hope that helps.

Alex

@Alex Koxaras - Thank you so much for your reply. Yes, I am using Jira Cloud. Why there are so much limitations on Jira Cloud. Jira is used worldwide and yet there are so many restrictions in Jira which is so irritating. 

I am using the same workflow for all the issue types currently. I'll need to create separate workflows for each issue type for this to work?

Alex Koxaras Community Leader Jun 10, 2022

@Hizkeel Khan in Jira cloud you are working with REST api, where in the server edition you are working with Java api. In addition, there are a lot limitations for security reasons.

  • You can either create separate workflows for the two subtasks and place these validators there OR
  • You can place the validators in the main workflow, ONLY IF you have an app which support conditional execution (JMWE, JSU, JWT etc)  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,170 views 34 44
Read article

Community Events

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

Events near you