|
USA-871111-EngineersConsulting Company Direktoryo
|
Company News :
- set custom field value in post function - Atlassian Community
def yesValue = ComponentAccessor optionsManager getOptions(changeCf)? find {it toString() == 'Yes'}
- OptionsManager (Atlassian JIRA 7. 6. 1 API)
After doing this, any existing Options objects may be stale, and should be re-fetched with getOptions(com atlassian jira issue fields config FieldConfig) Parameters: options - Usually an Options implementation
- Dealing with dynamic options for SelectList in Jira issue creation
import com atlassian jira component ComponentAccessor def optionsManager = ComponentAccessor getOptionsManager() def fieldManager = ComponentAccessor getCustomFieldManager() def envFld = fieldManager getCustomFieldObjectByName("CASE-Environment") def fieldConfig = envFld getRelevantConfig(getIssueContext()) def newSeqId = 0 For the sake of e g ,
- Set custom field value based on Issue type selection using Script . . .
def customField = customFieldManager getCustomFieldObject(selectcf getFieldId()) def config = customField getRelevantConfig(getIssueContext()) def options = optionsManager getOptions(config)
- Solved: How to get the value from Select List (multiple ch. . .
def businessCatOptions = ComponentAccessor optionsManager getOptions(businessCat getRelevantConfig(issue)) def businessCatValue = issue getCustomFieldValue(businessCat) log warn("Field Value: " + businessCatValue) if (businessCatValue == "Industrial Manufacturing and Processing Machinery and Accessories") {userName = "jarevalo"}
- Set a Default Option on a Select List - scriptrunnerhq. com
a single select list custom field name final String fieldName = "Select List" the value to set final String setValue = "Some Value" def field = getFieldByName(fieldName) def optionsManager = ComponentAccessor optionsManager
- ComponentAccessor (Atlassian JIRA 7. 6. 1 API)
Returns the core component which is stored in JIRA's Dependency Injection container under the key that is the given class In practise, this is the same as getComponentOfType(Class) except it will fail faster if the given Class is not a known component key (it also has a shorter and more meaningful name)
- How to get a list of all the options for a CustomField in an issue (Jira)?
def optionsManager = ComponentAccessor optionsManager def customField = ComponentAccessor customFieldManager getCustomFieldObject(<customfield_id>) def fieldConfig = customFieldB getRelevantConfig(<issue>) def options = optionsManager getOptions(fieldConfig)
- Solved: Script runner mail handler - Read Body and find th. . .
def value = ComponentAccessor optionsManager getOptions(cfConfig)? find {it toString() == '4-Low'} issue setCustomFieldValue(sevFld, value) def reqsrcfld = customFieldManager getCustomFieldObjectsByName("Request Source Type") first() def cfreqsrcConfig = reqsrcfld getRelevantConfig(issue) def reqsrcvalue = ComponentAccessor optionsManager
- Scriptrunner mailhandler send Email, set select list field value . . .
def options = optionsManager getOptions(fieldConfig) def option = options find{it value == "Production"} issue setCustomFieldValue(sampleList, option) def cfConfig = country getRelevantConfig(issue) def value = ComponentAccessor optionsManager getOptions(cfConfig)? find {it toString() == 'Pacific'} issue setCustomFieldValue(country, value)
|
|