org.swift.common.cli.CliClient$NotDefinedException: 'resolution' is not a define d field or is not valid in this context (for instance, not being available on th e appropriate screen).

JIRA | John Henne | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    executing the following: {code} jira --action runFromIssueList --jql "project = 'TESTPROJ' AND Status = 'In Progress' AND Pizza ~ Yes AND created >= -4h" --common "--action transitionIssue --issue @issue@ --transition ""Set Pizza Match"" --resolution ""Done"" --comment ""Set Pizza Match""" {code} I get the error: {code} Client error: 'resolution' is not a defined field or is not valid in this contex t (for instance, not being available on the appropriate screen). org.swift.common.cli.CliClient$NotDefinedException: 'resolution' is not a define d field or is not valid in this context (for instance, not being available on th e appropriate screen). at org.swift.jira.cli.fields.FieldsMeta.getAllowedId(FieldsMeta.java:138 ) at org.swift.jira.cli.fields.Fields.setField(Fields.java:454) at org.swift.jira.cli.helpers.IssueHelper.updateFieldsFromParameters(Iss ueHelper.java:252) at org.swift.jira.cli.helpers.IssueHelper.transitionIssue(IssueHelper.ja va:480) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:952) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClien t.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.common.cli.CliClient.doWork(CliClient.java:500) at org.swift.common.cli.CliClient.doWork(CliClient.java:496) at org.swift.common.cli.CliClient.processRunLine(CliClient.java:1229) at org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemo teClient.java:617) at org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1201) at org.swift.jira.cli.helpers.SoapIssueHelper.getIssueListRest(SoapIssue Helper.java:1700) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:766) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClien t.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) Ignore blank cookie file Elapsed time for list: 6176 Client error: 1 actions failed {code} My Resolution is required in the transition.

    JIRA | 2 years ago | John Henne
    org.swift.common.cli.CliClient$NotDefinedException: 'resolution' is not a define d field or is not valid in this context (for instance, not being available on th e appropriate screen).
  2. 0

    executing the following: {code} jira --action runFromIssueList --jql "project = 'TESTPROJ' AND Status = 'In Progress' AND Pizza ~ Yes AND created >= -4h" --common "--action transitionIssue --issue @issue@ --transition ""Set Pizza Match"" --resolution ""Done"" --comment ""Set Pizza Match""" {code} I get the error: {code} Client error: 'resolution' is not a defined field or is not valid in this contex t (for instance, not being available on the appropriate screen). org.swift.common.cli.CliClient$NotDefinedException: 'resolution' is not a define d field or is not valid in this context (for instance, not being available on th e appropriate screen). at org.swift.jira.cli.fields.FieldsMeta.getAllowedId(FieldsMeta.java:138 ) at org.swift.jira.cli.fields.Fields.setField(Fields.java:454) at org.swift.jira.cli.helpers.IssueHelper.updateFieldsFromParameters(Iss ueHelper.java:252) at org.swift.jira.cli.helpers.IssueHelper.transitionIssue(IssueHelper.ja va:480) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:952) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClien t.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.common.cli.CliClient.doWork(CliClient.java:500) at org.swift.common.cli.CliClient.doWork(CliClient.java:496) at org.swift.common.cli.CliClient.processRunLine(CliClient.java:1229) at org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemo teClient.java:617) at org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1201) at org.swift.jira.cli.helpers.SoapIssueHelper.getIssueListRest(SoapIssue Helper.java:1700) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:766) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClien t.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) Ignore blank cookie file Elapsed time for list: 6176 Client error: 1 actions failed {code} My Resolution is required in the transition.

    JIRA | 2 years ago | John Henne
    org.swift.common.cli.CliClient$NotDefinedException: 'resolution' is not a define d field or is not valid in this context (for instance, not being available on th e appropriate screen).

    Root Cause Analysis

    1. org.swift.common.cli.CliClient$NotDefinedException

      'resolution' is not a define d field or is not valid in this context (for instance, not being available on th e appropriate screen).

      at org.swift.jira.cli.fields.FieldsMeta.getAllowedId()
    2. org.swift.jira
      JiraClient.handleRequest
      1. org.swift.jira.cli.fields.FieldsMeta.getAllowedId(FieldsMeta.java:138)
      2. org.swift.jira.cli.fields.Fields.setField(Fields.java:454)
      3. org.swift.jira.cli.helpers.IssueHelper.updateFieldsFromParameters(IssueHelper.java:252)
      4. org.swift.jira.cli.helpers.IssueHelper.transitionIssue(IssueHelper.java:480)
      5. org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:952)
      5 frames
    3. org.swift.common
      CliClient.doSingleRunLine
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:433)
      3. org.swift.common.cli.CliClient.doWork(CliClient.java:500)
      4. org.swift.common.cli.CliClient.doWork(CliClient.java:496)
      5. org.swift.common.cli.CliClient.processRunLine(CliClient.java:1229)
      6. org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemoteClient.java:617)
      7. org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1201)
      7 frames
    4. org.swift.jira
      JiraClient.handleRequest
      1. org.swift.jira.cli.helpers.SoapIssueHelper.getIssueListRest(SoapIssueHelper.java:1700)
      2. org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:766)
      2 frames
    5. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:433)
      2 frames
    6. org.swift.jira
      JiraClient.main
      1. org.swift.jira.cli.JiraClient.main(JiraClient.java:153)
      1 frame