Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,552,225
Community Members
 
Community Events
184
Community Groups

Hello. What woudl be jql so that tasks under a jira story would inherit story,s labels.

Edited
Amruta Abhyankar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2023

My team is creating jira stories and under them they are mapping tasks.

Everytime they create a task under a story they have to add same labels they have added for the said story. 

Need a jql so that tasks under a story would automatically have story's labels. 

Any clue ? 

1 answer

1 accepted

1 vote
Answer accepted
Walter Buggenhout _ACA IT_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2023

Hi @Amruta Abhyankar and welcome to the Community!

You are a bit on a wrong track there, I'm afraid. JQL (or Jira Query Language) just helps you define search criteria to find (a list of) issues. It does not update anything for you.

Another issue with your question is that you cannot create tasks under a story. Those would be sub-tasks instead.

But, assuming that that is just a terminology thing, you would rather need an automation rule that updates a sub-task when it is added to a story. Such a rule would consist of the following components:

  • Trigger: issue created
  • Condition: issuetype = sub-task (so it only runs when the created issue is a sub-task)
  • Action: edit issue, where you select the labels field and copy the values from its parent issue.

Hope this helps!

Amruta Abhyankar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2023

Wow thanks for the response Walter. 

Much helped! I shall do this in my jira. And share output. Thanks again!:)

Suggest an answer

Log in or Sign up to answer