Save issue custom field value from listeners

Rostisalv Redko November 8, 2011

Hi, all!

I want to save issue custom field value from my listener in issueCreated method with value i generate there.

Is it possible to do this?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Daisy Zhang November 16, 2011

I think you can do saving at the end of the function issueCreated. When you get the value i, you can call the function issue.setCustomFieldValue like this issue.setCustomFieldValue(ManagerFactory.getCustomFieldManager().getCustomFieldObject(Long.valueOf(customFieldId)), i);. Dont forget to call reIndex function after you set the value.

TAGS
AUG Leaders

Atlassian Community Events