I am using a Scriptrunner Fast-track transition an issue in a Postfunction to transition my workflow when Field Value is "reopened". I have two intance of jira core server and the same post function in both but in ones of them works correctly and in the other, the warning says:
static type checking - no such property: value for class: java.lang.object @[deleted] 1 @column 1
For example, right now I am trying: cfValues['estado_ALM']?.value == 'reopened'
Hi @Melina Ailin Maquieyra and welcome to the community!
If I got your question right, do you have a Scriptrunner Fast-track post-function working on a workflow transition in Jira Server and want the same to work on Jira Cloud? If that is the case I am afraid you will need to rewrite the code on the cloud workflow to consume REST API’s APIs rather than the Java APIs.
Take a look at the Scriptrunner documentation for post-function to get a sense of the new code.
Cheers,
Alex
Hi. Sorry for my English
I'm not using Jira Cloud yet.
My question is:
I have a custom field "status ALM" that have the values "reopened" and "others".
In the script:
cfValues['status ALM']?.value == 'reopened'
Action: reopened
I've two instance of jira core server (testing and production). In testing works correctly but in production I have the warning: static type checking - no such property: value for class: java.lang.object @line 1 @column 1
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.