I want to notify certain people of any changes to any fields in the child work items of an epic. I was trying to use {{changelog}} but wanted to parse the data to it returns:
without having to pick the field, I want to extract the triggered field(s) from the response.
Examples of changelog values returned for Acceptance Criteria and Description:
Field: {Acceptance Criteria=[ChangeItemBean{fieldId='customfield_10083', field='Acceptance Criteria', fieldType='null', from='', fromString='Acceptance Criteria test', to='', toString='Updated Acceptance Criteria test'}]}
Field: {description=[ChangeItemBean{fieldId='description', field='description', fieldType='null', from='null', fromString='Description text', to='null', toString='Updated Description text'}]}
I found this old article and was excited to see if there was a solution, but it was asked to create a new quesiton which I didn't find so creating this new question.
Thanks!
Hi @Michelle S
Short answer: that is not easily possible (or even a complete solution) with automation rules.
First thing, every possible thing that can change in a work item is not recorded in the changelog provided to automation rules. The two reasons for this are: app errors, and marketplace apps / addons.
Next, you show an example with the Work Item Updated trigger. Although that will detect many things, it will not detect the ones which have a different event. And so multiple rules would be needed for those additional cases, such as:
Please review the list of all possible triggers and experiment to learn which ones the automation engine covers (or does not cover) for "work item updated".
Finally, and as you observed, the content / behavior of the {{changelog}} smart value varies by field, field type, and sometimes even project (e.g., JPD has its own type of date field). Thus, special handling would be needed for each possible, expected field.
Okay, what could you try? Here are some ideas:
Kind regards,
Bill
Thanks @Bill Sheboy ! I will try these different approaches and see what works best.
I was hoping to get:
Luckily, don't need Fix Version or Sprint. So I think I will try changelog for the first 3 and comment creation using another rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying, @Michelle S
For those fields, you will need three rules, triggered on:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I literally did just that but I made 4 rules - split the first one in 2. For any other native fields supported by changelog, I will just copy that rule and update the triggered field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more thing...I recommend adding a "label" to the four rules when in the list (or name them in a way to associate them). This will help with maintenance, tracking problems, and to explain the rule set to other people.
Happy rule writing!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.