State-machine rule: change State

Is there a way to change State from state-machine rules?

I tried to do it like this:

ctx.issue.fields['State'] = ctx.StateState.Open;

I get no errors, the content of the ctx.issue.fields['State'] does change, but the State stays the same.

0
1 comment

Hello,

I'm Lena from YouTrack Support. 

Could you please send me the whole state-machine rule? I will check it and let you know if I find a source of the issue. 

0

Please sign in to leave a comment.