Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Urgent- Request for Help for JIRA configuration Issue in Bangalore,India Require a consultant or company can work with us for specific time frame and solve the JIRA related configuration issues at Bangalore

Post function : Single select list custom field values setting on WF Transition

Maha vishnu v
April 2, 2020

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 . 

 

 

 

5 answers

0 votes
Bharath Venkatesh
January 7, 2015

We have a delivery center is India. Let us know if we can schedule a call soon.

0 votes
Bharath Venkatesh
January 7, 2015

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

0 votes
Cristian _Southend_
January 1, 2014
0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 1, 2014
0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 31, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events