Need help in syncing single version picker and resolution

Originally asked by Support on 09 March 2023 (original question)


Hello,

I am trying to sync Azure and Jira. I want to set default values for version picker field and resolution and vice versa within incoming script of Jira. I need to know how can I achieve it.

Need below things:

Set single version picker and resolution

clear single version picker and resolution

I am trying to set default values/clear values for version picker and resolution fields. I am able to do it for version picker completely and able to set resolution but not able to clear resolution. Besides, I also checked https://docs.exalate.com/docs/how-to-synchronize-custom-fields-in-jira-on-premise but it still not answer my queries


Comments:

Ariel Aguilar commented on 09 March 2023

Hi there,

Have you tried adding a condition and just do:

if(blah...){  
issue.resolution = nodeHelper.getResolution("Unresolved") 
}

Kind regards,

Ariel