Hello wonderful people!
Can someone help me please!?
This works partially for me (it changes the issuetype but has problems with the workflow:
---------------
def cf = issue.get ("customfield_14840") as String
if (cf.find ("IS PROBLEM"))
{
def newIssueType = ComponentAccessor.issueTypeSchemeManager.getIssueTypesForProject (issue.projectObject) .find {it.name == "Incident"}
if (newIssueType) issue.setIssueTypeObject (newIssueType)
}
else
{
def newIssueType = ComponentAccessor.issueTypeSchemeManager.getIssueTypesForProject (issue.projectObject) .find {it.name == "Service request with Eventual approval"}
if (newIssueType) issue.setIssueTypeObject (newIssueType)
}
----------------
I researched a lot and couldn't find a solution that works :(
You can't just change the issue type. You need to go through the whole "move" process, unless the target issue type is configured to use the same fields and workflow.
Thanks for the answer!
That's what I need to do for Groovy.
I created a service catalog structure in Insight and I have a single form in the customer portal to open different types of issues.
Do you or anyone have a script that changes the link of the workflow?
Thank you!
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.