Using Jira Software DC 8.21.1 with Jira Advance Roadmaps and ScriptRunner DC 6.47.0, I'm trying to auto copy a Jira custom field of "IT Team" to Jira Roadmaps "Team" field when ever the Jira custom field "IT Team" gets updated. I was thinking of using Behaviors to keep both fields in sync at all times, but it seems that this "Team" field for Jira Roadmaps only accepts value IDs.
What is the best way to copy the field value once the Jira Custom Field of "IT Team" is selected as "Fun Team1", which needs to copy the equivalate field value ID of "11" to the Jira Roadmaps field "Team" which only accepts IDs? I'm looking for help with the groovy script that would address this with Behaviors.
Appreciating You!