I would like to write a post function for the create transition.
I would like the post function to check the following:
If the Issue type is not bug and Description is Empty
set Description field to "Not Entered" and Priority field to "Priority 4"
Any ideas on how to do that?
Try something like that:
if ((!issue.getIssueType().name.toString().equals("Bug")) and (issue.description == null)){ issue.setDescription("Not Entered") issue.setPriorityId("4") }
P.S. Use a custom scripted postfunction
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does my answer worked for you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do have script runner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have scripts post function plugin (Script Runner) or Misk Workflow postfuncions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.