Forums

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

How to locate the position of the error script from the error message?

何阳历 August 28, 2023

/secure/WorkflowUIDispatcher.jspa [c.innovalog.groovy.GroovyExpression] [Class:CreateIssueFunction ; Workflow:AAA:PHXQ_WorkFlow ; Transition:711 ; Issue:AAA-9252] Groovy Script threw error: groovy.lang.MissingMethodException: No signature of method: script_448a5c728977dc8755caeedfbbe5488b.string() is applicable for argument types: (String) values: [AAA-9252] Possible solutions: toString(), toString(), print(java.lang.Object), print(java.lang.Object), sprintf(java.lang.String, [Ljava.lang.Object;), print(java.io.PrintWriter)


Where is the script named script_448a5c728977dc8755caeedfbbe5488b located, and how can I locate the erroneous code?

1 answer

1 accepted

1 vote
Answer accepted
Sayed Bares [ServiceRocket]
Community Champion
August 28, 2023

@何阳历 welcome to the community!

It should be in a Create/Clone issue(s) post-function added on transition ID 711 in AAA:PHXQ_WorkFlow workflow and the error is because you are using .string() method which is not valid.

何阳历 August 28, 2023

Thank you for your guidance. I understand the meaning of the error message. I also searched on AAA:PHXQ_WorkFlow but did not find any script that used the '.string(' method.

Can the source code for this Groovy script named script_448a5c728977dc8755caeedfbbe5488b be found on the server or in the database?

Sayed Bares [ServiceRocket]
Community Champion
August 28, 2023

@何阳历 you should be able to see it in UI. What happens if you go to AAA:PHXQ_WorkFlow workflow > Transition 711 Create/Clone issue(s) post-function? can you share a screenshot?

何阳历 August 28, 2023
Found the reason. It was due to incorrect assignment.

string issueKey = issue.getKey()

The string should be java.lang.String .



Thank you all for help

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events