The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to set additional fields by scripting in Jira-Create Issue action?

Rajini2
Mega Sage

I have a flow with Jira - Create Issue action. I am using scripts to set the project key, issue type, summary, additional fields etc.

Rajini2_1-1721767600538.png

 

In my additional fields, I have some json script like this.. 

 

var additionalFields = {
"fields": {
    "labels": "TEST Label",
    "components": "TEST Component"
}
};
var jsonSTR = JSON.stringify(additionalFields);
return jsonSTR;

 

 

when I run the test, response body is not having the additional fields populated. Can someone help me here? Not sure if my approach is right.

 

I want additional fields to show up in response body, and populate the values in Jira.

 

Rajini2_0-1721766151656.png

 

Thanks.

1 ACCEPTED SOLUTION

Rajini2
Mega Sage

This was the response from ServiceNow Support and it solved the issue with additional fields. 


KB0818189 - Additional Fields are greyed out when you configure Project/Issue ID with a script in "Create Issue" or "Update Issue" action in Flow Designer for Jira Spoke

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0818189

 

Thanks

View solution in original post

3 REPLIES 3

Sandeep Raj Ram
Tera Contributor

Hi @Rajini2 ,to populate additional fields, you will have to create custom action. Please refer to below video.

 

https://www.youtube.com/watch?v=Vqthvk2nIEA&t=546s

 

Regards,

Sandeep Raj

Jira Spoke - Issue Update Action Here is the detail description how to setup outbound update from ServiceNow to Jira using "Update Issue" Action from Jira Spoke. Links for the below: 1. Additional Fields are greyed out when you configure Issue ID with a pill in "Update Issue" action in Flow ...

Rajini2
Mega Sage

This was the response from ServiceNow Support and it solved the issue with additional fields. 


KB0818189 - Additional Fields are greyed out when you configure Project/Issue ID with a script in "Create Issue" or "Update Issue" action in Flow Designer for Jira Spoke

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0818189

 

Thanks

data pill picker not available for addtional fields of create issue type, only inline script is there for me