Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an Outlook for Jira plugin available for Android

David Reynolds
February 21, 2022

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)?

1 answer

1 vote
Mahesh S
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.
September 27, 2016

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.

Jonny Carter
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.
September 28, 2016

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.

Suggest an answer

Log in or Sign up to answer