Forums

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

looping in changelogs on different date fields (milestones)

Bertrand Schmitt February 27, 2020

Hi everyone,

I'm trying to use Automation for Jira to add a comment whenever one or more date fields are changed.
Those date fields are milestones and I want to track if someone change them

The trigger is easy: Tracking Field Issue Changed on Issue updated event. This works fine
The Action is: Add comment to issue and for a single comment it's easy again

*{{fieldChange.field}}* delayed to {{fieldChange.toString}}

--> M6: DLB delayed to 06.02.2020

The problem: When updating two milestones at once, the fieldChange only shows the first occurence. So I'm trying to use  {{#changelog}}{{field}}{{/}   but it doesn't work

The changelog is not empty (I can write it in the comment using {{changelog}})

{
M11: Mise en production=[ChangeItemBean{field='M11: Mise en production', fieldType='custom', from='null', fromString='null', to='2020-02-10', toString='10.02.2020'}],
M6: DLB=[ChangeItemBean{field='M6: DLB', fieldType='custom', from='2020-02-12', fromString='12.02.2020', to='2020-02-06', toString='06.02.2020'}]
}
 

M11 and M6 are both Date Custom Fields.

 

So, I'm missing a point. Anyone able to help ?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events