- Workflow to experiment with Groovy in JMWE
- Create a Task Management Workflow
- Create a Project Lead
- Create a custom field "User who made the transition"
- Assign the issue to the Project lead if the priority of the ticket is High or Critical
- Add Set field value pf
- Select the value as PL
- Add CE - issue.get("priority").getName() == "High" or issue.get("priority").getName() == "Critical"
- Store the author of the transition
- Add the Set field value pf
- Select the custom field
- Add GE - currentUser
- Save the workflow.
- Remove JMWE post-function
- Save it and share the XML
- Create a Task Management Workflow
- Tutorial - My first Groovy script
- Fetch the key of the issue
- issue.getKey()
- Provide reference to the issue variable and the getKey() method
- What do you get as the output - Refer the expected value of each field type document.
- What can I do with this Groovy script result? - that is a String
- Either add this as a comment/Set a field that expects a String as input.
...