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
Please write which script worked like that? Because not a single answer has helped me yet. I will turn to web development services for help to automate business processes, but I would like to figure it out myself for future manipulations.
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.
Scripts help a site to perform tasks that a plugin can do but they create less overhead on the system. People who work on telemedicine platform development will know exactly what overhead can do to a system. I have seen motherboards fry because of this extra load.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.