This Plugin gives some extremely nice features, like:
- Using prebuilt-in functions/tasks
- Running scripts in Transitions.
- Online (GUI) groovy scriprunner
With JIRA 7 the "ComponentManager" is deprecated, use "ComponentAccessor" instead.
With JIRA 8 the "ComponentManager" is removed, use "ComponentAccessor" instead.
The plugin has been purchased by Adaptavist in 2015 and is from version 4 Paid Product.
Change Task Type
This actually gets hold on a clone and changes the "Task Type" Custom Field to "Clone", whereas on the Master it is still "Master"
Condition for Link
This script sends "passesCondition = false" if there is an "Awaiting" Link type on the Issue.
Setting Issue values after "Create Subtask"
In This sample "transientVars" refers to the parent values
See issue properties/methods reference
Getting a Custom Field Value (String)
Setting a Custom Field Value (String)
Taken the value fetched above:
This does not work for all field types (like labels).
Assigning a user
A broader picture (ref: https://answers.atlassian.com/questions/98433/assigning-issues-via-groovy):
Remove and Set labels
Transist Linked Issues
This is very nice, for "auto" progressing linked issues. (Idea and source from this)
Going "the other way". There is also an getInwardLinks(issue.id) collection.
Send Custom Mail
Some standard JIRA Field can be accessed very direct, other must be throught the
Subject can be text or like:
Body can be like:
Making Fields Required
This script is a sample from a Validation Function
A "neat" but raw idea for a scripted field: https://answers.atlassian.com/questions/191893