Hello,
I am using Jira version 6.2.2, Script runner 3.0.16
I wrote a groovy script which performs the auto transition just like (https://scriptrunner.adaptavist.com/latest/jira/recipes/jelly-migration.html#_in_code) and trying to run this as a service. The script works well when I run it in the script console, but it is not working when I run it as service. Below is the error message from the log file.
Error Messages: It seems that you have tried to perform a workflow operation (Inactive - Pending Closure) that is not valid for the current state of this issue (xxx-10101). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.
I suspect that I need to make the Jira user in the script to authenticate first, if this is correct could anyone help me with the script for making a Jira user authenticate (login).
Thanks in advance,
Rahul.
Community moderators have prevented the ability to post new answers.
Hey,
How can I know if my script ran? I created a service and pointed it to a .groovy script
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post your full script. https://scriptrunner.adaptavist.com/latest/jira/recipes/jelly-migration.html#_in_code shows how to do the transition as any particular user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am going to run my script as a service (https://scriptrunner.adaptavist.com/latest/jira/services.html) using Script Runner Add-On (Version 3.0.16).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you explain how your script is launched. Is it a postfunction or some plugin run a script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vasiliy, Thanks for your response I need to make the script user authenticate first by giving credentials like User Name and Password in the script to make the user login,so that he has necessary permissions to perform the tasks. Could you you please help me with a sample script which makes the user authentication first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that you have some permission trouble. Make sure that a users who use this script have respective rigth to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.