This is the below code i have used and had no working , Aggregate status is the field name , Design is the values want to set on transition Todo ==> inprogress
Code 1 tried :
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'MyCustomFieldType'}
issue.setCustomFieldValue(cf, 'Design')
compiled without error and its not working
Code 2 tried :
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.ComponentManager;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.issue.customfields.manager.OptionsManager;
import com.atlassian.jira.issue.customfields.option.Option;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.issue.MutableIssue;
MutableIssue currentissue = currentissue // Any one please explain what is mutable issue ?
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Aggregate status'}
def fieldConfig = cf.getRelevantConfig(issue)
Option value = ComponentAccessor.optionsManager.getOptions(fieldConfig)?.find { it.value == 'Design' }
issue.setCustomFieldValue(cf, value)
its not working and I need assistance from community .
Thanks and i appreciate your information .
We have a delivery center is India. Let us know if we can schedule a call soon.
Go2Group is Platinum Atlassian Experts and the largest reseller of Atlassian products. We can help you with all services related to ALMs. Write to us sales@go2group.com
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 can contact http://www.equestind.com/atlassian.php
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the experts list at https://www.atlassian.com/resources/experts
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.