Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we add an automation rule for the issue Type QA Story?

Emna Elleuch
Contributor
January 29, 2024

i'm trying to add a new automation rule that sum up time tracking : {{issue.QAStory.TimeSpent.Sum}}

In the backlog i have a Story and linked some QA Story, When a user add a Tracking time in the QA Story, I would like to see the sum up in the Linked Story? Maybe something  is wrong, it doesn't work for me :( tried with Sub tasks and it worked. Can someone please help?

Time tracking.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.
January 29, 2024

Hi @Emna Elleuch 

For your scenario, it seems you have a Story issue with one-or-more QA Story issues linked to it.  And, when the time is log for a QA Story, you want to one of these:

  1. also log that time to the "parent" Story
  2. re-calculate the sum of all QA Story issues time tracking in a custom field

If you want to do the first one, you may modify the rule to specifically branch to only one issue: the Story, using JQL.  Then the issue edit can reference the time tracking just logged for the trigger issue.

If you want to do the second one, consider using JQL and Lookup issues to gather the other QA Story issues, sum the total time logged, and then edit the custom field in the Story using a branch (also on JQL to that specific issue).

 

Please note, based on what you described: I hypothesize the other rule you mention to sum time tracking for subtasks does not work either if it uses the same techniques as you show.  Please investigate and re-test that rule.

 

Kind regards,
Bill

0 votes
Pierre Ibrahim
Contributor
January 29, 2024

Hi @Emna Elleuch

I think your syntax is slightly off for your formula, you're doing {{issue.QAStory.TimeSpent.Sum}} inside a branch for linked issues, which means you're referencing the linked issues' Time Spent, not the QA Story's.

I think what you might want to do instead is something like {{triggerIssue.TimeSpent}} + {{issue.TimeSpent}} (or something to that effect, my syntax is definitely off) that way you'd be getting the timespent from the trigger issue (which is you QA Story), and you're adding it to the time spent for the linked issue.

Suggest an answer

Log in or Sign up to answer