The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Any reason this wouldn't work? "{cardhoursinpreviouslist} + {{%triggercardpreviouslistname}}"

Geo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2023

I am attempting to create and automation that record the time a card spends in each list.  I have a custom field setup for each list.  The below regex works as any list so when the card is moved to any new list, the custom field corresponding to the previous list is updated with the time it was in that previous list.  However, if the card is moved back and forth it overwrites this time so I wanted to add to the existing value that is already in the custom field.  The below does not work.  If I replace this  {{%triggercardpreviouslistname}} with a static value or a custom field name, it does work.  

 

when a card is added to list "regex:/.*(\w+).*/", set custom field "{triggercardpreviouslistname}" to "{cardhoursinpreviouslist} + {{%triggercardpreviouslistname}}"

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Geo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2023

Wait nevermind. I am new here!  One more {} to separate the variable worked!

when a card is added to list "regex:/.*(\w+).*/", set custom field "{triggercardpreviouslistname}" to "{cardhoursinpreviouslist} + {{%{triggercardpreviouslistname}}}"

TAGS
AUG Leaders

Atlassian Community Events