Not able to map priority from Incident to JIRA using flow designer - JIRA Spoke

sd2097
Tera Guru

Hi there,

 

We want to integrate ServiceNow and JIRA using JIRA spoke. For that, we are creating a flow. But in the Create Issue action, when we are wanting to write a script to map the Priority field, the script isn't executing. In the execution, it says - 'Connection Timed Out'.

 

Please find below the snap of the error:

sd2097_0-1674557038266.png

 

Below is the code that we are using in the 'Flow Designer' to map the Priority field.

 

sd2097_1-1674557095674.png

 

var priority = fd_data.trigger.current.priority;
var jirap = '';
if(priority=='1'){    
    jirap = 'Highest';
}
else if(priority=='2'){    
    jirap = 'High';
}
else if(priority=='3'){ 
    jirap = 'Medium';
}
else if(priority=='4'){ 
    jirap = 'Low';
}return jirap;

 

 

Thanks,

Sudhangshu

1 REPLY 1

Marwan_
Mega Expert

Hi @sd2097 

 

What you are trying to achieve here is clear, however there is on way to know why the connection time out error is being thrown as it is seemingly not connected to this specific script. 

Does your connection work if you don't assign any priority value? and do other fields and values get assign correctly?

 

It can be tricky to setup this kind of integration up as you need to account for the way the receiving system is expecting to receive the data and process it.

 

If I may provide you with an alternative: using a specialised solution for this kind of integration that would make it much easier to perform these kind of mappings between the two platforms.

Have a look at Exalate. It also has a free tier that you can try out for basic integrations.  

 

If I can be of further assistance please let me know.