...
Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=getProjectsInCustomFieldContext+-+1342671544 |
---|
width | auto |
---|
|
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getProjectsInCustomFieldContext(customFieldId, context) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the list of project keys for a certain custom field context. Note that if the routine does not return anything then the context is global. You can use the allProjects routine to get all the projects. |
Returns the list of projects for a certain custom field context
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
customfieldId | String | Yes | The id of the custom field (format: customfield_xxxxx) | context | String | Yes | The id or the name of the custom field context | |
Return Type
String []
Examples
Code Block |
---|
|
return getProjectsInCustomFieldContext("customfield_10041", "10169"); |
ITSD|TEST
Code Block |
---|
|
//global, should return []
return getProjectsInCustomFieldContext("customfield_10040", "10167"); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "cf_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|