Rescheduling Issues
Table of Contents |
---|
Info | ||||
---|---|---|---|---|
| You will need the following JIRA plugins:
| |||
Level: INTERMEDIATE |
Problem
...
First off, we create the Reschedule action.
...
Condition Script
Then, we must make it available only for the project lead and only for issues that are not Resolved or Closed, so we write the following condition:
...
This will generate the following screen
Tip | ||
---|---|---|
| ||
Don't forget that assigning a string value containing pipes to a string array, will split the original string at the position of each pipe. Therefore, we can use "1.0|2.0" as a value for Fix Versions to set multiple values. |
...
Code Block | ||
---|---|---|
| ||
string [] fvers = getElement(argv, 1); string newAssignee = getElement(argv, 3); string comment = getElement(argv, 5); fixVersions = fvers; assignee = newAssignee; if(isNotNull(comment)){ addComment(key, currentUser(), comment); } |
...
That's it! You now have a powerful tool, reusable across multiple projects!