Create issue error - Specify the Priority (name) in the string format

Hi

did someone encounter this problem ? Apparently this is some new error:
Could not create an work item with type `Service Ticket` on project `XXX`: Unable to create request because of these errors : Field with id ‘priority’ named ‘Priority’ has these errors : Specify the Priority (name) in the string format.

What i have tried, and in the past it worked:

def priorityMapping = [

    // remote side priority <-> local side priority             

      "Critical" : "Critical",

      "Major" : "Major",

      "Minor" : "Minor",

      "Trivial" : "Trivial"

\]

def priorityName = priorityMapping[replica.priority?.name] ?: “Minor” // set default priority in case the proper urgency could not be found

issue.priority = nodeHelper.getPriority(priorityName)

OR:
issue.priority = nodeHelper.getPriority(replica.priority?.name) ?: nodeHelper.getPriority(“Minor”)

Thank you in advance !

Hi! Thanks for reaching out. Could you please clarify your question or provide more details about what you’re looking to achieve with Exalate? This will help me point you in the right direction or provide the most relevant information.

Hi
Priority is not getting synced

Hi @Bogdan

Jillani here and thank you for opening a community post.

May I know what instances you are using (for example Jira, Azure etc)

Regards,

Jillani

Hi
sorry for the missing infos :slight_smile:

We use Exalate Scripts with jira Cloud to cloud.

Thank you & BR