Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-2386

Scripted Field with without "type" property in Jira API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • 5.1.0
    • 5.2.1
    • None
    • None
    • Sprint 35 - Ends Oct 10
    • 1.3

    Description

      Scripted fields with a searcher that is not natively supported in JIRA - for example "Exact Text Searcher (natural)" searcher from the Natural Searchers Plugin - have no type assigned when you try to get them via a REST call.

      Steps to reproduce

      Create a scripted field of any template and searcher Exact Text Searcher (natural)

      And then navigate at

      http://localhost:8080/jira/rest/api/latest/issue/$iisueKey?expand=schema,names,transitions
      

      And search for the custom field. You will get something like

      customfield_10122: {
      custom: "com.onresolve.jira.groovy.groovyrunner:scripted-field",
      customId: 10122
      }
      

      instead of

      customfield_10122: {
      *type: "<any type>"*,
      custom: "com.onresolve.jira.groovy.groovyrunner:scripted-field",
      customId: 10122
      }
      

      Attachments

        Activity

          People

            tbatagiannis Thanos Batagiannis
            tbatagiannis Thanos Batagiannis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: