Skip to main content
1-Visitor
August 23, 2018
Question

Integrity: Edit field state over api

  • August 23, 2018
  • 1 reply
  • 2060 views

Hi,

 

I would like to change the field 'state' to a value that the workflow contains over api.

The workflow consists of Unspecified, Active, Retired. Every edge has 'everyone' permission.

The type is Test Step

 

The command is: im editissue --fields=State=Retired

The error message is: Could not save modified item 325885: The following fields may not be edited [ State ]

 

Do you have any clue to solve the problem?

    1 reply

    1-Visitor
    August 23, 2018

    Hi @thiem,

     

    This command should work and is supported using JAVA API's. I tried in my local environment and it's working perfectly... Take a look over below command and execute it as it is.. (Just change ID and State Value as per environment)

    im editissue --field="State=Under Execution" 11704


    FYI: In your command it's --fields and it should be --field and you have not gave ID so if i change your command a bit it should be :-

    im editissue --field="State=Retired" 325885

     

    Hope it helps.

     

    Grube,

    Kapil

    thiem1-VisitorAuthor
    1-Visitor
    August 23, 2018

    Hi,

     

    Thanks for your help. I typed the command in here an wrote some errors in it. Sry.

     

    I've found the solution for problem. For the state there was a rule for type test step. After removing this rules, the state change is working.

    1-Visitor
    August 24, 2018

    Hi @thiem,

     

    Great.....

    Please accept this as solution or resolved.....

     

    Grube,

    Kapil