How to use "nodeHelper.getHtmlField" with custom field? JIRA Cloud

Originally asked by Stefan Hillmann on 17 March 2022 (original question)


Does anybody know how to use the nodeHelper.getHtmlField with custom fields?

The standard-example with “description” field is working, but no way to integrate customFields!?!

I`ve already tested with
nodeHelper.getHtmlField(issue, “customfield_<FieldNumber>”)

nodeHelper.getHtmlField(issue, customFields.“<FieldName>”)

nodeHelper.getHtmlField(issue, “customFields.<FieldName>”)

nodeHelper.getHtmlField(issue, “customFields.<FieldNumber>”)

No way. Need help :smile:


Answer by Stefan Hillmann on 18 March 2022

Charlie Schonken Thanks for your quick reply. Unfortunately your suggestionsare not working for me :smile:

But I finally figured it out!
You need the “customfield_#####” for adressing the Jira field.

Using the following line in the outgoing Sync of Jira is working for me like a charm…

replica."MyCustomField" = nodeHelper.getHtmlField(issue, "customfield_10111")

Answer by Charlie Schonken on 17 March 2022

Hi Stefan,

Perhaps we need to understand your business case.

But I think the code should look like below.

Unfortunately I dont have custom fields with html, so I dont use this example

nodeHelper.getHtmlField(issue.customFields."#####".value)

or perhaps

nodeHelper.getHtmlField(issue, issue.customFields."#####".value)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.