1
0
-1

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)

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      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")
        CommentAdd your comment...
      1.  
        1
        0
        -1

        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)
          CommentAdd your comment...