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

Inherit component from parent issue

I have set up an automation rule but it doesn't seem to be working. When i tried to create sub-task, still needed to manually choose the component.

 

Rule.pngComponent.png

 

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 15, 2023

Hi @Jenni Chen 

It is possible this is a timing issue.  The Issue Created trigger can fire so quickly the issue data is not available at the time the rule runs.  This can cause later rule steps to not work as expected; for example, perhaps the parent is not visible / set yet for the copy of Components.

The work-around for this is to always add the Re-fetch Issue action immediately after the Issue Created trigger.  This will slow down the rule by about a second and reload the issue data before proceeding.

Please try that to see how it impacts the results.

Kind regards,
Bill

Thanks Bill, added a re-fetch issue action but unfortunately it is still working.

Refetch.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 16, 2023

Please move the Re-fetch up to immediately after the trigger, and then re-test:

  • trigger: issue created
  • action: re-fetch issue
  • condition: issue type equals Sub-task
  • action: edit issue fields for Components

Thanks again Bill, tried as you suggested, still not working. 

refetch.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 17, 2023

Please show images of your Edit Issue action and the audit log details showing the rule execution.  Those may help to explain this.

Also, is this a company-managed or a team-managed project?  You may find that information at the bottom-left side of the page's expanding area.

0 votes
Marta Woźniak-Semeniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 15, 2023

After you create the issue the component should be changed to the one from parent - but the rule is only run at the moment you click create at the bottom of issue create form. 

Thanks Marta, I've made the 'component' field a mandatory field to mark before creating a task, so it looks like there is no better way to do this. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events