Create URL of Issue In ServiceNow

Knowledge Heis1
Tera Contributor

Hello

@Ankur Bawiskar 

We are using Jira webhook. Whenever an issue is created or updated, the information flows into ServiceNow through the flow designer. Now we want to create the Issue URL and update that in one of the fields in the ServiceNow Custom table, We have stored the base URL in the system property, Can I create a URL for that Particalur Issue?

 

"corp.atlassian.net/browse/issue key "in flow designer?

1 ACCEPTED SOLUTION

Hemant Kumar Ch
Kilo Sage

Hello Knowledge 

 

Create a Action with input as Payload 

 

Add Script Step 

var allInputs = JSON.parse(inputs.payload);
outputs.key = allInputs.issue.key;

 

Map that output Variable to Key field 

 

Please like if it helped You

Ch Hemant Kumar

 

View solution in original post

21 REPLIES 21

@Knowledge Heis1 

if you get the json body in the inline script; you can parse it

did you check what came in logs when you use input.payload?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Any sample script how toget json body in inline script and parse it 

 

it is showing as error as input undefined may be due to subflow 

Hello Ankur 

 

Did you get time to look?

@Knowledge Heis1 

Nope.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mathieu Lepoutr
Mega Guru

Hi

You can create the URL for a Jira issue dynamically in ServiceNow flow designer using the Concatenate Strings action to combine the base URL stored in the system property with the issue key obtained from the Jira webhook payload.

Please have a look at this decentralized software option called Exalate, it will help you tremendously in getting this integration done.