Forums

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

How to update a customfield in create transition?

daniel gomez
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 27, 2018

Hello...
I am writing a script (groovy) for a postfunction, in the transition "create". I need to update the value of a customfield [setCustomFieldValue()], however, the script does not do what I want. The same script works in another transition.

I understand that the problem is because when I access the customfield, the field has not been created yet.

please, I would appreciate any guidance.

regards

2 answers

0 votes
Mark Markov
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 2, 2018

Hello @daniel gomez

Please check postfunction position, it must be right before "Update change history for an issue and store the issue in the database."

0 votes
miikhy
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.
June 27, 2018

Hi Daniel,

Could you share the error logs and the script content maybe so that we can have better visibility and provide more accurate guidance? Can you also share a screenshot or details on when the script is executed in the postfunction flow (what's its position?).

Thanks!

Suggest an answer

Log in or Sign up to answer