I was trying to close the ticket automatically with the help of Jelly script. The jelly script require user name and password to close the ticket but we can not provide for some security reason. Without password I tried to run the jelly then its run fine in Jelly Runner (Developement environment) But the same code when I trying through service then I am getting the error (<jira:TransitionWorkflow> Found workflow transition with name/id '141' but that is not a valid workflow transition for the current state of issue )
Actually when I am running the Jelly script in the Jelly Runner(Developement Environment) with the user name without the password, ticket gets closed successfully. But with the same user name without the password running the code through the service then I am getting the error ( <jira:TransitionWorkflow> Found workflow transition with name/id '141' but that is not a valid workflow transition for the current state of issue )
can you please help me out from this problem.
Many thanks for your action!
That's because you're running the script as someone who cannot transition the issue. You need to change the permissions to let the script runner do it, or run the script as someone who can.
If you want to log in as a specific person, you need to authenticate somehow, which means using a password. The reason I use Jelly scripts to do this is that the username and password are kept only in the script and that lives on the server's disk, not a public location, so it doesn't matter that I've used a password.
You have to be a user who has the right to execute the transition. There is no getting around that without coding, and it would be bad practice to do so because you'll be breaking security.
Either allow the transition to be done by anyone, or stop being silly about saving a password on a secured server.
Now, I am trying to close the ticket with the help of Jira-Automation-Plugin. I downloaded and uploaded the plugin in the add-on, After that I am confuse where have to write the JQL and delay in time to run it.
My mean, What to do after installation of the plugin because I am new for this. One more thing I want to add in this that my Jira version is v6.0.1. Is this Jira-Automation Plugin is supporting to Jirav6.0.1.
Will you please help me to come out from this problem.
I am using Jira 6.0.1, To use the feature of Jira-Automation plugin I need to upgrade my Jira version. Right??
If Yes, Then there is any other workaround to close the ticket automatically after completion of specific time.
Because to upgrade the Jira version is a quite big task and lots of permission have to take from higher authority. Please suggest some workaround for the same.
Now we migrated to JIRA v6.1.3 and I am little bit understand the use of Automation plugin.
I have created the rule but at the time of click on save button getting the pop up message "Unknown error. Please reload and try it again" and I tried the same upto five time with different scenerio but then also I am not able to succeed in this.
could you please help me out.
Many thanks for help in advance!
I recall getting this error a couple of times early on when we were evaluating the plugin. Unfortunately I can't recall the exact reason. It could have been that the admin session had expired, but I'm not 100% sure. Is there anything in the logs?
For reference we're now running JIRA 6.2.5 with JIRA Automation plugin 1.1.6
Here's the settings we have for our equivalent rule:
Name of the rule: Auto-close resolved issues
Actor of the rule: support
Enable rule once created?: Ticked
Select Trigger: JQL Filter Trigger
CRON schedule: 0 0/30 * * * ?
JQL expression: status = Resolved AND updated <= -1w ORDER BY updatedDate ASC
Limit results: 100
Choose action: Transition issue action
Workflow Transition: Auto-Close (751)
Disable notification for this transition?: Ticked
Transition fields: <blank>
Which translates to a task which
Note, the workflow transition step was specifically created for this purpose. It simply moves an issue from the status of Resolved to the status of Closed and has a condition which means it can only be executed by the support user.
Hope this helps
Getting the below exception in log,
QuartzScheduler_Worker-3 ERROR 953470 [plugin.automation.scheduler.RuleCallable] Exception while executing the rule
Are you aware with this NullPointerException
I've not seen that error, sorry.
Here are some possible lines of investigation:
Perhaps you can post your settings for the rule?
I'm not associated with the plugin - its provided by Atlassian Labs, so you may also try and post an issue on their issue tracker - https://bitbucket.org/atlassianlabs/automation/issues
I checked each and every steps one by one as specified by you. I hope am right every where But I have one doubt,
1. Should I have to create one more transition as (Closed) to close the ticket or it will be close by the existing Closed transition.
Because currently I am using the existing Closed transition and I am still getting the same exception.
And the second link that you provided to me is blocked in my company.
Could you figure out the problem? I get same error as you when I try to create a rule and same exception in my log. The information provided in logs is not detailed so it does not give any idea about the problem. I really need this feature so I have to find a solution. Please let me know if you have.
After a number of tests, I figured out the problem. I didnt enter any value both "limit" and "transition fields" so a null point exception was thrown in logs. When I enter some values to these two fields I dont get the pop up message "Unknown error. Please reload and try it again" anymore. I add the "Transition Issue Action" for my rule while testing. I hope this can help you.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs