Forums

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

Post function: Custom field not appending data on transition

daniel_gamez July 15, 2020

I am trying to update a custom field on a post function inside a transition.

The post function is executed when Issue is moved from state 'IN REVIEW' to state 'TO DO'.

Datetimes array is a custom field of type Text(multiline) 

Capture.PNG

 

Capture.PNG

 

The issue is setting the date, but not appending future changes 

Capture.PNG

And this is the history of the issue

Capture.PNG

 

 

 

 

 

2 answers

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
July 16, 2020

Hi Daniel - Welcome to the Atlassian Community!

I don't know what it is not appending the value and is instead replacing the value. You might want to create a support ticket for Atlassian to investigate. 
Another option is to create an Automation For Jira rule and try to append it that way. 

daniel_gamez July 17, 2020

Opted for this solution, added a rule triggered by the transition from `IN REVIEW` to `TO DO` to add a comment with the date, just a workaround, will see if I can hide the comments and disable each notification for this particular rule, thank you very much! 

Like John Funk likes this
0 votes
Nic Brough -Adaptavist-
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.
July 16, 2020

It's because the function you are using is for updating fields, not adding to them.  If you were using a field that has multiple values, it would be adding to it, but you're using a text field, which is a single value, so it's updating.

John Funk
Community Champion
July 16, 2020

Hmm, that description is very misleading then as it says it will append the value. "If set, the given value will be appended to the field."

daniel_gamez July 16, 2020

I thought of that as well, so I tried to change the value from '%%CURRENT_DATETIME%%' to '*' which it would append to the current value, resulting in an iterative 1 line * per trigger 

Capture.PNG

 

Capture.PNG1.PNGCapture.PNG2.PNG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events