I am running the Outlook for Jira plugin in Windows but have not bee successful finding the similar plugin for Android. Is there a plugin that will allow me to generate anew issue or add to an existing issue from email within Outlook (Android)?
Please use this as a reference.
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager()
CustomField approvalNeeded = customFieldManager.getCustomFieldObjectByName("Approval Needed")
String value = (String) issue.getCustomFieldValue(approvalNeeded)Now, the value of Approval needed into the variable 'value' and go ahead with further coding as you required.
Here's the same script, with imports and more relaxed typing:
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def approvalNeeded = customFieldManager.getCustomFieldObjectByName("Approval Needed")
def value = issue.getCustomFieldValue(approvalNeeded)See also the examples using the OptionsManager to show you how to get the list of possible values for your select list field. https://scriptrunner.adaptavist.com/4.3.7/jira/recipes/behaviours/select-list-other.html. You probably won't need them for your use case, but you may for similar work.
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.