I need to copy the value of one of my custom fields on the Edit screen to another custom field. The workflow status will remain the same while doing this.
Look at this plugin - https://marketplace.atlassian.com/plugins/com.onresolve.jira.plugin.Behaviours
Thanks. I do have this installed. I use this during transitions. Could you give me more information? I am trying to copy the value of CustomField1 to CustomField2 when CustomField1 is changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Follow this pattern
https://jamieechlin.atlassian.net/wiki/display/JBHV/JIRA+Behaviours+Plugin#JIRABehavioursPlugin-Setonefieldbasedonanotherfieldwithinformationprovidedbytheserver
Add validator to customfield1 and in the groovy code set the value of customfield2 to the value of customfield1
Also you can use this dicussion for reference (except the "if" statements)
https://www.linkedin.com/groups/change-priority-blocker-based-on-4038966.S.5860112152534228996?trk=groups_most_recent-0-b-ttl&goback=%2Egde_4038966_member_5857426728196009988%2Egmr_4038966
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's a sample code (add it to customfield1)
FormField cf1 = getFieldById(fieldChanged) FormField cf2 = getFieldByName("CustomField2") cf2.setFormValue(cf1.getValue())
Note that in the UI you'll not see immediate update of customfield2, but it will be updated if you click anywhere on the form or just click update to save the issue changes.
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.