cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Integrity: Edit field state over api

thiem
2-Explorer

Integrity: Edit field state over api

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?

3 REPLIES 3
kjain-2
15-Moonstone
(To:thiem)

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

thiem
2-Explorer
(To:kjain-2)

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.

kjain-2
15-Moonstone
(To:thiem)

Hi @thiem,

 

Great.....

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

 

Grube,

Kapil

Announcements


Top Tags