Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Associate custom sub task with a custom tasks

What is the reason do not have the possibility to have a few custom sub-tasks associated with custom tasks in one project?

Fo example:
On one project
Dev task -> dev sub-task (with dev workflow)
Design task -> design sub-tasks (with design workflow)

At this moment I get how to set only:

All tasks could have any type of sub-tasks

2 comments

That's correct, Jira does not have a function to limit sub-task types by the parent type.  

Like John Funk likes this

[Edited with working example. Also, the UX is not that bad.]

So, it turns out you can do this in Cloud with any of the add-ons that support Validators that allow for custom Jira Expressions. (Which is I think all of them.)

Basically I added a Custom/Scripted/Build-it-yourself Validator on the Create transition with the following Jira Expression:

(issue.issueType.name == "Sub-task" 
&& issue.parent.issueType.name == "Task") || 

(issue.issueType.name == "Bug Sub-task" 
&& issue.parent.issueType.name == "Bug") ||

!["Bug Sub-task","Sub-task"].includes(issue.issueType.name)

With an error message:

Only Tasks can have Sub-tasks. Bugs must have Bug Sub-tasks.

So basically what this is doing is, if the issueType of the issue you are trying to create is a Sub-task, the parent must be a Task. OR, if you're trying to create a Bug Sub-task, the parent must be a Bug. Lastly, if you are not trying to create either kind of Sub-task, then the validator lets you proceed.

Here's what it looks like if you don't match it up right:

subtasks.png

It's easy enough to flip the Issue Type and get it right.

Like Sergey Shkut likes this

Hm, it can help.

Thank you

Darryl Lee Community Leader May 28, 2021

Ooof, for some reason I was thinking of Jira Cloud. My bad.

Yeah, that add-on looks like it would do exactly what you need.

  • Restrict allowed parent issue types for subtasks.

In my example, it can't be done with two separate Validators, I forgot that unlike Conditions, you can't have "Any". I still think it can be done with a single Jira Expression. 

Anyways, apparently it can be done on Server/Data Center with:

Darryl Lee Community Leader May 28, 2021

But yeah, this can't be done out of the box:

https://jira.atlassian.com/browse/JRASERVER-7990

Thank you for your help.
These links are the next level of working with JIRA

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

314 views 9 7
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