Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=getProjectsInCustomFieldContext+-+1342671544
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getProjectsInCustomFieldContext(customFieldId, context)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
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
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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
languagejs
return getProjectsInCustomFieldContext("customfield_10041", "10169");

ITSD|TEST

Code Block
languagejs
//global, should return []
 return getProjectsInCustomFieldContext("customfield_10040", "10167");

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "cf_routine" and space = currentSpace ( )
labelsarray_routines