How can we get the value of the custom fields?

Shijianmin
Kilo Contributor

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:

           find_real_file.png

 

  • 3.Use "Subflows > Process Jira Webhooks" to pass data From Jira Software to ServiceNow SAFe

           The setting as follows:

           find_real_file.png

          

[Test After setting]

  • Create a story in the ServiceNow 

         find_real_file.png

  • The Same story is Automatically generated in Jira software find_real_file.png

 

[About log as follows]

  • The log of Flow > Trigger jira >actionfind_real_file.png
  • The log of Subflows > Process Jira Webhooks >actionfind_real_file.png

 

18 REPLIES 18

surya123
Mega Guru

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

Shijianmin
Kilo Contributor

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

find_real_file.png

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

find_real_file.png

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']);

  find_real_file.png

 Step3: Change the path of the “Jira Wehook Registry” to the new one

    find_real_file.png

  • 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]

   find_real_file.png

 Step2: Create the field name in Process Jira webhooks page that you found at the Step1

      find_real_file.png

 

 

 Thanks

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

ojaswini1
Kilo Contributor

Hi All,

I am facing the same issue, Need urgent help on this.

Regards,

Ojaswini