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
01-10-2024 09:04 AM - edited 01-02-2025 02:00 AM
Hi,
Please find the below details to parse Subflow payload and populate JIRA custom field value to any specific table field.
1. Create Action -> Create a new action, then first step is to create an input variable.
Create a payload input variable with type String (Full UTF - 8)(matching sub flow payload data type with custom action input payload data type).
2. Second step is to add a new step and select Script step that executes custom JavaScript. We can also use JSON Parser step to parse the payload data but, it requires some specific Integration Hub plugins installed in order to enabling this step.
(function execute(inputs, outputs) {
var parsePayload = JSON.parse(inputs.payload);
gs.info("payLoad is "+parsePayload);
outputs.customfieldvalue = parsePayload.issue.fields.customfield_10103;
gs.info("output string "+outputs.customFieldValue);
})(inputs, outputs);
outputs.<variable_name> must match output variable section name.
3. Last step is to create Action Output that contains the final result and can be re-used in Subflows and flows.
After creating output variable, exit edit mode and drag-drop output variable from previous script step.
Publish and call this action in your flow or a Subflow provide a payload as an input then the result will be stored in the output variable. Then, use the auto-populated data section output variable to map to your required table field. Please find in below screenshots.
hope this helps !
Mark my answer correct/helpful based on impact .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 05:50 AM
Hi Kiran - I'm trying to get the fixVersions name from the Jira Issue.
I have followed the steps you have provided, can you give more details on how to finish the last step?
Publish and call this in your flow or a Subflow provide a payload as an input then the result will be stored in the output variable. Then, use the auto-populated data section output variable to map to your required table field.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 09:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 08:20 AM
Can you provide screenshots of how you called this in your subflow?
I am trying to get the Jira End Date added to the webhook to get updated info when the end date changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 10:03 AM
I'm sorry, do you have any screenshots to help me with the last step to call the action in the process webhook subflow?
My goal is to get the Fix Versions from the Jira issue to populate in a new field I have created on the task table.
I have followed your steps to create the action, but I'm not getting the new action to work properly in the subflow.