- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 08:46 AM
Hello
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2023 03:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 10:11 PM
you can try to use the inline scripting and set the value
get the system property value and append the key
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 10:22 PM
Could you please help in Scripting ,I am lacking on that part
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 11:58 PM
in the inline script section for the URL field do something like this
return gs.getProperty('baseURL') + '/browse/' + <give here the key you receive from previous flow step>;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 02:20 AM
Hello Ankur
When I am using the below script in Subflow Link inline script, it is given error as "attempting to use undefined input = 'current' from Process Jira ServiceNow Webhooks.
var getKey = fd_data.trigger.current.u_key
return gs.getProperty('jira_base_url') + '/browse/' + getKey;
and my key is IST-303 but in field it is updating as IST only ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 02:34 AM
the key you will get from the step which is giving you the response i.e. the previous step
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader