Jira Spoke unable to clear Jira Assignee

kmolson73
Tera Expert

We currently have an integration with Jira using the Integration Hub spokes, I am unable to clear the assignee in Jira when it is cleared first in ServiceNow. I have tried leaving the Assign Issue account id field blank, I've tried putting null and unassigned in there as well. It does not work. Does anyone know how I can accomplish clearing the assignee field (setting it to unassigned) in Jira, the error I am seeing is account id cannot be empty in the execution in SN. How do we clear the assignee?

 

I do not have any issues when doing the opposite of clearing the assignee in Jira and it clearing in SN using the webhook subflow. We need this to work bi-directionally. 

1 ACCEPTED SOLUTION

Kale
Tera Expert

I ran into this same issue since the documentation is fairly lacking, but found that using the Assign Issue action and setting the Account ID to -1 seems to work for clearing out the Assignee field.

 

If you actually look at the xml of a Jira issue where the field is empty, it looks something like this:

 

<assignee accountid="-1">Unassigned</assignee>

 

 
So in my Flow, the action looks like this:
Kale_0-1731532770154.png

Hope this helps!

View solution in original post

6 REPLIES 6

Hi @Venkatapuram Ga did you find solution to update assignee in Jira from ServiceNow

manikantac
Tera Contributor

Hello @Kale 

I'm trying to assign a person to the Issue with assign issue action . It is throwing following error.

{
    "Action Status": {
        "code": 1,
        "message": "Error:  User '62df9d18831f46df767d6f876ds7' cannot be assigned issues. (Process Automation.db703652879d5950a89975d7cebb35db; line 4)"
    }
}


But user has all permissions from JIRA. 

 

could you please help me on this !!

 

Thanks in Advance.