Hi everyone,
this question is NOT about transitioning through workflow (sometimes also called "move"). This question is about moving sub-tasks between issues.
Background:
First question: What trigger shall I use in automation to detect a sub-task got moved between issues?
I would then wish to re-calculate the parent story points from the sub-tasks on both the previous and the new parent of the moved sub-task
Second quesion: How could I address re-calculation on both affected parents by one rule?
Thanks in advance & Cheers
Ralf
For your first question, my bet would be to monitor the Parent Link field for any changes and compare the previous with the new value.
For your second question I would begin by following this automation template and make any necessary modifications.
Yes, and...to Alex's suggestion:
You do not show an image of your current rule, so it is difficult for the community to give you focused guidance. Please consider posting your rule to help provide that context. Thanks!
Regarding your second question: depending upon your current rule, you may not be able to do this in one rule. Instead, you could have a second rule triggered on some field value change (e.g. commented added noting "Recalculate the story point total") to sum the points for the story from which the subtask was removed. This could become your primary rule for recalculation (i.e. move the sum logic to the new rule, and change your current rule to just add the triggering comments).
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your reply.
Regarding question one
Regarding question two, I know about that template and used it already for summing up story points upon the change of story points in sub tasks. My question relates more to whether
or whether
But I think question two gets answered instantly once it is clear what field to query to get the automation activated
Kind regards
Ralf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy cc: @Alex Koxaras -Relational-
the rule based upon "Subtask count" is the following: According to my understanding, this should work for both parents
The rule base upon "Parent link" however I deleted already for it didn't work and I needed another rule for the old parent anyway. It was similar to the follwing rule but just using the "Parent link" field as its trigger:
Kind regards
Ralf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I tested this a while ago, and can confirm that you cannot yet detect in a rule when the parent changes as it is not supported in the changelog. To be clear, the "issue updated" trigger can fire, but the changelog does not record the parent change.
@Parcandi Administrator Is subtask count a custom field you are manually setting, or perhaps based upon a schedule or issue created trigger?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wait up!!! I've done it! I just have to tuck my daughter to bed and I'll post the rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy as always you were on the right track, with the exception that changelog works like a charm:
I wasn't able to post it earlier, since I had personal things to attend to :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Alex! I last tried that with changelog about a year ago...I think.
Did you test that rule with a move operation? How about with company-managed versus team-managed as they have different parent handling?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I did move three times subtasks from one parent to another and works as it should be! I didn't try on TMP, since I find myself always playing in CMP. Perhaps I'll give it a go and see if I can come up with anything!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! And I believe that as you have implemented the rule with branches, it may also handle the case of issue type conversion/move: sub-task to story, or the other way around.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So far what I've implemented works only for when subtasks are moved to a standard issue type (only child-parent relationshp)
And in TMP there are a few differences:
So in TMP I couldn't manage to make it work. I'll try a bit more, I don't have high hopes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Move Issue" trigger doesn't execute when moving issues to same project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So it's a bug! :)
Still have to find a solution about the parent change log. Maybe this is a bug as well and not recorded on history? I mean {{issue.fields.parent}} gives you the current key. {{changelog.parent}} ought to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.