Empty customer fields (Assignee and Assagnee group) in escalation window shown in transition

Dears,

When having a transition for an escalation I get a screen for the escalation information. By default the Asignee and Assignee groups are set to the Assignee and Assignee goup of the issue. I want this custom fields to be blank as an escalation is typically done to another person or team.

Image 018.png

I have tried to add a an condition on the transition, but this does not seem to work (Script runner)

import com.opensymphony.workflow.InvalidInputException;
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.ModifiedValue;
import com.atlassian.jira.issue.util.DefaultIssueChangeHolder;

try{
        
    def issueManager = ComponentAccessor.getIssueManager()
    def customFieldManager = ComponentAccessor.getCustomFieldManager()
    def cf = customFieldManager.getCustomFieldObjectByName("Assignee")
    def changeHolder = new DefaultIssueChangeHolder();
    cf.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(cf), ""),changeHolder);
    
    
   // log.error "Customer Request Type: " + cFieldValue;

    
}catch(Exception ex){
    
    log.error "REAL ERROR" + ex.getMessage()
 
}


Does someone know a solution for this?

Kind regards,

Matt

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

148 views 1 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you