How can we get the value of the custom fields?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2020 01:28 AM
We used Jira spoke v2.5 to integrate ServiceNow SAFe with Jira software.
We have one problem that couldn't get the value of the custom field in Process Jira Webhooks of Subflow.
How can we get the value of the custom fields?
[Prerequisite settings]
- 1.Create a project in Jira software and add customization fields(JiraID) to this project
- 2.Use "Flow >trigger jira" to pass data from ServiceNow SAFe to Jira Software
- 3.Use "Subflows > Process Jira Webhooks" to pass data From Jira Software to ServiceNow SAFe
Detail of setting
- 2.Use "Flows >trigger jira" to pass data from ServiceNow SAFe to Jira Software,
The setting as follows:
- 3.Use "Subflows > Process Jira Webhooks" to pass data From Jira Software to ServiceNow SAFe
The setting as follows:
[Test After setting]
- Create a story in the ServiceNow
- The Same story is Automatically generated in Jira software
[About log as follows]
- The log of Flow > Trigger jira >action
- The log of Subflows > Process Jira Webhooks >action
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2020 03:15 AM
Hi
Did you get a solution to this? I also want to fetch the values of custom fields on jira to servicenow but process webhook dont show those values.
Thanks
Surya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 11:54 PM
Hello, Surya.
I'm sorry for replying late.
Yes, We have reslove the problem,
So I would like to share the way of solving.
I hope that you can resolve this problem.
Overview
We customized the Process Jira webhooks(Jira Spoke), then we can get values.
As an overview, add part1 and part2 in the red frame to Process Jira webhooks,
as follows.
Component drawing of Integration
Part1
In order to get the payload information from JIRA,
to convert the payload format of the Script REST Source file
Part2
Create the custom field in Process Jira webhooks page that you want to add
Detail
- Part1
In order to get the payload data(point to the custom field) from JIRA,
need to convert the payload format of this Script REST Source file
Convert: JSON→Object
Step1: To Find the default Script Rest source file.
Script Rest Resource Execution> Subflow Inputs & Outputs>Open Record
Step2: Create a new Script REST Source, then add type conversion of payload to this new one
Add: subFlowInputs['payload_json'] = JSON.parse(subFlowInputs['payload']);
Step3: Change the path of the “Jira Wehook Registry” to the new one
- Part2
Create the field in Process Jira webhooks(Jira Spoke) that corresponds to that customized field.
Step1: To find the field name you want to customize from the log, click the payload [string_full_utf8]
Step2: Create the field name in Process Jira webhooks page that you found at the Step1
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2021 12:27 AM
Hi Shijianmin,
I have done this changes, Still I am not able to fetch the fields.
Duedate and custom field is not cming. Could you please help.
Regards,
Ojaswini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2021 12:27 AM
Hi All,
I am facing the same issue, Need urgent help on this.
Regards,
Ojaswini