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 