Ad Widget

Collapse

Jira integration with custom fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Will85mckay
    Junior Member
    • Oct 2024
    • 3

    #1

    Jira integration with custom fields

    Hello, I've made some progress but I have an outstanding problem.

    In short, we need to provide a custom value for a custom field. This is because Zabbix feeds through the webhook the same way users do and we require they fill certain things out.

    For now we plan to turn off these requirements until we find the fix.
    I figured out how to find the custom field IDs but the value escapes me. I thought I could use a string like "Zabbix" if that was a valid option the users could pick, but that fails.
  • Will85mckay
    Junior Member
    • Oct 2024
    • 3

    #2
    I don't see an "edit" button (I could be missing it)

    This is the error message I get when it tries to send to JSM:

    Sending failed: Request failed with status code 400: "Unable to create request because of these errors : Field with id 'customfield_10190' named 'IT Location' has these errors : Specify a valid 'id' or 'name' for IT Location" Check debug log for more information.

    Comment

    • Will85mckay
      Junior Member
      • Oct 2024
      • 3

      #3
      Ended up fixing it by editing the script:
      Code:
      createRequest: function(summary, description, fields) {
              var data = {
                  serviceDeskId: Jira.params.servicedesk_id,
                  requestTypeId: Jira.params.request_type_id,
                  requestFieldValues: {
                      summary: summary,
                      description: description,
                      customfield_10190: { "id": "11072"}
                  }

      Comment

      Working...