Anyone know where to find a tutorial on script runner? It looks like exactly what we need but being new to JIRA.
https://jamieechlin.atlassian.net/wiki/display/GRV/Script%20Runner
Thanks Michal, but I was looking for something a bit more basic (Start me with a hello world . Being new to JIRA, I do not even know where to start. I started writing plugin but that will take some time and to solve the immediate need of having a script that will automatically put the project into the correct component. Cheers...
When I try to run any example I get every line as an error: Error!startup failed: Script1.groovy: 1: unable to resolve class ComponentManager @ line 1, column 18. ComponentManager componentManager = ComponentManager.getInstance() ^ Script1.groovy: 2: unable to resolve class User @ line 2, column 6. User remoteUser = componentManager.getJiraAuthenticationContext().getUser() ^ Script1.groovy: 3: unable to resolve class MutableIssue @ line 3, column 14. MutableIssue issue = componentManager.getIssueManager().getIssueObject("DTT-1757") ^ Script1.groovy: 4: unable to resolve class Project @ line 4, column 9. Project project = issue.getProjectObject() ^ Script1.groovy: 5: unable to resolve class Version @ line 5, column 9. Version version = componentManager.getVersionManager().getVersion(project.getId(), "1.2") ^ Script1.groovy: 6: unable to resolve class ProjectComponent @ line 6, column 18. ProjectComponent component = componentManager.getProjectComponentManager().findByComponentName(project.getId(), "MyComponent") ^ Script1.groovy: 11: unable to resolve class ActionResult @ line 11, column 14. ActionResult aResult = CoreFactory.getActionDispatcher().execute(ActionNames.ISSUE_UPDATE, actionParams); ^ 7 errors
Are you trying to do this in confluence, or was that just a "tagging failure"?
I find this tutorial quite helpful: http://igorpopov.io/2014/11/24/rocking-with-jira-script-runner/
now I am opening above link, but page does not exist, anybody can help me?
It's nearly 3 years old, and people have moved on. Have a look at the SR docs and search this community for what you're trying to achieve.
Hi Nic Brough ,
Thanks for reply,
Now I am able to looking script runner in jira.
But I need help for the retrieve issue id using scriptrunner
Could you please help me when you get free time
It looks like you're new here. Sign in or register to get started.