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

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 35 - Ends Oct 10
    • Critical Points:
      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

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

              Dates

              Created:
              Updated:
              Resolved: