Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to color a card based on if it has subtasks of a certain status.

I've been struggling with what I think should be a simple task.  Color a card based upon if it has subtasks of a certain status.

I have tried a whole host of various Googling/Stack Overflow/Atlassian Answers and have yet to figure this out.  Any help would be much appreciated.   

These are some of the attempts that have failed:

  • issuetype = "Story" and issueFunction not in hasSubtasks()
  • issue in issuesWithRemoteLinksByGlobalId("SubTaskId")
  • issueFunction in subtasksOf("status = COMPLETED")
  • parent = issuekey

This is likely a simple issue but I'm new to JIRA administration and help would be much appreciated.

3 answers



I believe is not possible with raw Jira, but I use an addon (JQL tricks plugin) that has a special function you can apply to issue field (issue in subtaskIssuesFromFilter(savedFilterId)) 

Good luck!


1 vote
Ignacio Pulgar Community Leader Dec 07, 2016

There's no such a built-in function that returns all issues that have at least one subtask. So, issues that have any subtasks under certain statuses doesn't exist either.


You may achieve it with a third party plugin, though . 

Ignacio Pulgar Community Leader Dec 07, 2016

Look for Script Runner for JIRA Cloud in the Atlassian Marketplace.

Is there functionality to determine if an issue has subtasks at all? 

Hi @ all,

I use the following command to color a card if it has subtasks:

issueLinkType = "is parent task of"

You might combine it with any other command to further specify your request.

Best regards, Birdy

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

92 views 1 1
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