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

**URL:** <https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927>\
**Category:** General Questions\
**Created:** [April 27, 2026, 7:25am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927 "2026-04-27T07:25:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://community.exalate.com/u/Bogdan)\
**Post date:** [April 27, 2026, 7:25am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/1 "2026-04-27T07:25:36Z")

</div>

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 !

---

<div class="post-metadata">

**Author:** ![Aida](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/aida/32/580_2.png) [@Aida](https://community.exalate.com/u/Aida)\
**Post date:** [April 28, 2026, 9:03am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/3 "2026-04-28T09:03:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://community.exalate.com/u/Bogdan)\
**Post date:** [April 28, 2026, 9:14am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/4 "2026-04-28T09:14:57Z")

</div>

Hi  
Priority is not getting synced

---

<div class="post-metadata">

**Author:** ![Jillani\_Fazal](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jillani_fazal/32/355_2.png) [@Jillani\_Fazal](https://community.exalate.com/u/Jillani_Fazal)\
**Post date:** [April 28, 2026, 9:19am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/5 "2026-04-28T09:19:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://community.exalate.com/u/Bogdan)\
**Post date:** [April 28, 2026, 11:06am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/6 "2026-04-28T11:06:08Z")

</div>

Hi  
sorry for the missing infos 🙂

We use Exalate Scripts with jira Cloud to cloud.

Thank you & BR

---

<div class="post-metadata">

**Author:** ![Jillani\_Fazal](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jillani_fazal/32/355_2.png) [@Jillani\_Fazal](https://community.exalate.com/u/Jillani_Fazal)\
**Post date:** [May 1, 2026, 5:14am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/7 "2026-05-01T05:14:32Z")

</div>

Thank you for the update.

The error suggests that the receiving system expects the Priority field to be set using a string value (the name of the priority), not an object or ID.

The `nodeHelper.getPriority()` function returns a Priority object, which works for some Jira configurations, but some systems (especially Jira Service Management or Azure DevOps) require the priority to be set as a string (the name of the priority).

Try setting the priority as a string directly:

```
   def priorityMapping = [
    "Critical" : "Critical",
    "Major" : "Major",
    "Minor" : "Minor",
    "Trivial" : "Trivial"
]
def priorityName = priorityMapping[replica.priority?.name] ?: "Minor"
issue.priority = priorityName

```

- Use the string name of the priority, not the Priority object.
- Double-check the field name and how your destination system expects the value (sometimes it’s `issue.priority`, sometimes a custom field).

Useful Article: [Sync Issue Priority Fields in Jira Cloud | Exalate Doc](https://docs.exalate.com/docs/use-cases-how-to-sync-issue-priority-fields-in-jira-cloud)

Please check and let me know the outcome.

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://community.exalate.com/u/Bogdan)\
**Post date:** [May 12, 2026, 11:11am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/8 "2026-05-12T11:11:39Z")

</div>

> [@Jillani\_Fazal](#):
>
> ```auto
> def priorityMapping = [
> "Critical" : "Critical",
> "Major" : "Major",
> "Minor" : "Minor",
> "Trivial" : "Trivial"
> ]
> def priorityName = priorityMapping[replica.priority?.name] ?: "Minor"
> issue.priority = priorityName
> 
> ```

Hi

Funny enough, it requires a string, and then it complains about it:

**Error Detail Message:**

Illegal argument type class java.lang.String for setPriority

com.exalate.api.exception.script.ScriptException: Illegal argument type class java.lang.String for setPriority at com.exalate.error.services.ScriptExceptionCategoryService.categorizeProcessorAndIssueTrackerExceptionsIntoScriptExceptions(ScriptExceptionCategoryService.scala:51) at com.exalate.processor.ExalateProcessor.executeProcessor(ExalateProcessor.java:77) at com.exalate.replication.services.processor.CreateIssueProcessor.$anonfun$executeScriptRules$1(CreateIssueProcessor.scala:221) at scala.util.Try$.apply(Try.scala:210) at com.exalate.replication.services.processor.CreateIssueProcessor.executeScriptRules(CreateIssueProcessor.scala:213) at com.exalate.replication.services.processor.CreateIssueProcessor.$anonfun$createIssue$1(CreateIssueProcessor.scala:119) at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:470) at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63) at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94) at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100) at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) Caused by: javax.script.ScriptException: javax.script.ScriptException: java.lang.IllegalArgumentException: Illegal argument type class java.lang.String for setPriority at

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://community.exalate.com/u/Bogdan)\
**Post date:** [May 12, 2026, 11:31am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/9 "2026-05-12T11:31:16Z")

</div>

Hi again

I did use this time  
def priorityMapping = [  
“Critical” : “Critical”,  
“Major” : “Major”,  
“Minor” : “Minor”,  
“Trivial” : “Trivial”  
]  
def priorityName = priorityMapping[replica.priority?.name] ?: “Minor”  
issue.priority = nodeHelper.getPriority(priorityName)

Lets see.

BR

---

<div class="post-metadata">

**Author:** ![Jillani\_Fazal](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jillani_fazal/32/355_2.png) [@Jillani\_Fazal](https://community.exalate.com/u/Jillani_Fazal)\
**Post date:** [May 14, 2026, 4:20am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/10 "2026-05-14T04:20:21Z")

</div>

Hi @Bogdan

Appreciate the update. In light of your last comment, may I know if the error again appeared or not?

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://community.exalate.com/u/Bogdan)\
**Post date:** [May 15, 2026, 7:37am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/11 "2026-05-15T07:37:33Z")

</div>

Hi

Apparently this time it went through.

No errors so far.

Thank you for your support !

BR

---

<div class="post-metadata">

**Author:** ![Jillani\_Fazal](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jillani_fazal/32/355_2.png) [@Jillani\_Fazal](https://community.exalate.com/u/Jillani_Fazal)\
**Post date:** [May 20, 2026, 11:32am UTC](https://community.exalate.com/t/create-issue-error-specify-the-priority-name-in-the-string-format/7927/12 "2026-05-20T11:32:30Z")

</div>

Hi @Bogdan

Glad to learn that the shared information was helpful and the error is no longer appearing. 🙂

BR,  
Jillani
