log.warn("OriginValue = "+ OriginValue)
Hi @Rash ,
is Origin field on the transition screen ? Moreover could you indicate custom field type?
Fabio
Hi @Fabio Racobaldo _Catworkx_ ,
Thanks for your quick reply.
The Origin field is "Select List (single choice)" and is on the screen otherwise it will not get its value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Rash ,
try this code :
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.customfields.option.Option;
import com.atlassian.jira.issue.fields.CustomField;
IssueManager issueManager = ComponentAccessor.getIssueManager();
CustomFieldManager cfManager = ComponentAccessor.getCustomFieldManager();
CustomField OriginCf = cfManager.getCustomFieldObject("customfield_10404");
Option originValue = issue.getCustomFieldValue(OriginCf)!=null?(Option)issue.getCustomFieldValue(OriginCf):null;
log.warn("OriginValue = "+ OriginValue)
// this return IVV
if (originValue!=null && originValue.getValue().equals("IVV"))
{
return true
}
else
{
return false
}
Hope this helps,
Fabio
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.
Register now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.