I need to copy value of a custom field into another customfield.
I tried this.
CustomField cf1 = cfManager.getCustomFieldObject(11419)
CustomField cf2 = cfManager.getCustomFieldObject(10204)
issue.setCustomFieldValue(cf2,issue.getCustomFieldValue(cf1))
But setCustomFieldValue function makes changes only in the issue object here but changes are not reflected in database. How can I achieve this?
Hello, @sandeep vb.
Try solution that I suggested here.
Thank you very much Andrey Kuzmin, I tried what you had mentioned. I could make changes in the user database successfully.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.