...
Code Block |
---|
*Creating Quick Filters* You can add your own Quick Filters in the board configuration (select *Board > Configure*) Asset name: My second asset 001 Form name: All type of attributes form Attachments details: [ { "originalFileName" : "arizona-asphalt-beautiful-490466.jpg", "serverFileName" : "51408_08610_1546431401755.jpg", "fileSize" : "1 MB", "created" : "02/Jan/19 2:16 PM", "creator" : "admin" } ] Creator: admin Create time: 2018-12-11 13:30:05.124 Attribute name: field value ---------------------------------- CheckboxList Field: bal City: izm Cities: ist, ada RadioCities: ist InventoryList (All Assets List): 3 InventoryListByForm (Assets List By Form(s)): 10 City as DropdownList Field: ada Purchase Date: 02.01.19 Assign DateTime: 02.01.19 15:16 Device IP: 10.0.0.2 Device IPv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 Some Free Text: As a user, I can find important items on the board by using the customisable "Quick Filters" above >> Try clicking the "Only My Issues" Quick Filter above A great URL example: http://www.snapbytes.com/ Assigned User: admin(admin) |
Get "Text Field" JIRA custom field value
Script
Code Block |
---|
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cField = customFieldManager.getCustomFieldObject("customfield_11000")
def cFieldValue = issue.getCustomFieldValue(cField).getValue()
return cFieldValue |
Result: Los Angeles
Get "Select List (single choice)" or "Radio Buttons" JIRA custom field value
...
Code Block |
---|
import com.atlassian.jira.issue.Issue import com.atlassian.jira.component.ComponentAccessor def issueManager = ComponentAccessor.getIssueManager() def customFieldManager = ComponentAccessor.getCustomFieldManager() def cField = customFieldManager.getCustomFieldObject("customfield_11000") def cFieldValue = issue.getCustomFieldValue(cField).getValue() return cFieldValue |
...
Code Block |
---|
import com.atlassian.jira.issue.Issue import com.atlassian.jira.component.ComponentAccessor def issueManager = ComponentAccessor.getIssueManager() def customFieldManager = ComponentAccessor.getCustomFieldManager() def cField = customFieldManager.getCustomFieldObject("customfield_11001") def cFieldValue = issue.getCustomFieldValue(cField) def cityNameList = new ArrayList<String>() for(String cityName: cFieldValue){ cityNameList.add(cityName) } return String.join(", ", cityNameList) |
...