Versions Compared

Key

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

This article describes how to use placeholders in combination with SQL to specify a data source for a grid.  Table Grid Next Generation supports placeholders to query Jira values.

Excerpt
hiddentrue
Get data from Jira objects and use them to populate the grid.

Jira values can be used to populate the grid with data from Jira objects.

You can query the values from the following Jira-specific objects: issue, project, component, user and custom fields.

For example, you can populate the grid column with a default value retrieved from Jira object. 


You can use Jira values to populate the grid with data in different cases:

  • initialize grid with data 
  • set default values for gird columns
  • populate select lists with dynamic options retrieved from Jira
  • use custom field values in a grid: get data from a custom field which has a list of values and populate a grid with these values.

Supported values

Basic Jira Values



Placeholder expressionResult value
parent issue
issue


parent:idid of the
current
parent issue
issue


parent:keykey of the
current
parent issue
issue


parent:summarysummary of the
current
parent issue
issue


parent:descriptiondescription of the
current
parent issue
issue


parent:environmentvalue from the environment field of the
current
parent issue
issue


parent:estimate

original estimate of the

current

parent issue

tinymce.emotions_dlg.warning available only if time-tracking has been enabled by your Jira administrator

issue


parent:logged

logged time spent working on the

current

parent issue

(warning)

tinymce.emotions_dlg.warning available only if time-tracking has been enabled by your Jira administrator

issue


parent:created_datedate when the
current
parent issue has been created
issue


parent:resolution_dateresolution date of the
current
parent issue
issue


parent:updated_dateupdate date of the
current
parent issue
issue


parent:due_datedue date of the
current
parent issue
issue


parent:votesnumber of votes for the
current 
parent  issue
issue


parent:watchersnumber of watchers for the
current
parent issue
issue


parent:security_level

security level id of the security of the

current

parent issue

(warning)

tinymce.emotions_dlg.warning available only if issue security has been enabled by your Jira administrator

parent
issue
parent


issue:idid of the
parent
current issue
parent


issue:keykey of the
parent
current issue
parent


issue:summarysummary of the
parent
current issue
parent


issue:descriptiondescription of the
parent
current issue
parent


issue:environmentvalue from the environment field of the
parent
current issue
parent


issue:estimate

original estimate of the

parent

current issue

tinymce.emotions_dlg.warning available only if time-tracking has been enabled by your Jira administrator

parent


issue:logged

logged time spent working on the

parent

current issue

tinymce.emotions_dlg.warning

(warning) available only if time-tracking has been enabled by your Jira administrator

parent


issue:created_datedate when the
parent
current issue has been created
parent


issue:resolution_date

resolution date of the

parent

current issue

parent


issue:updated_dateupdate date of the
parent
current issue
parent


issue:due_datedue date of the
parent
current issue
parent


issue:votesnumber of votes for the
parent 
current  issue
parent


issue:watchersnumber of watchers for the
parent
current issue
parent


issue:security_level

security level id of the

security of the parent

current issue

tinymce.emotions_dlg.warning

(warning) available only if issue security has been enabled by your Jira administrator


status



issue:status:idstatus id of the current issue


issue:status:name 

status name of the current issue

(warning)name is a default value 

issue:status  is equal to issue:status:name



issue:status:descriptionstatus description of the current issue


issue:status:sequencestatus order position 

status_category



issue:status_category:idid of the status category 


issue:status_category:name

name of the status category

(warning)name is a default value 

issue:status_category:name  is equal to issue:status_category



issue:status_category:keystatus category description of the current issue


issue:status_category:sequencestatus category order position

resolution



issue:resolution:idresolution id of the current issue


issue:resolution:name

 resolution name of the current issue

(warning)name is a default value 

issue:resolution:name  is equal to issue:resolution



issue:resolution:descriptiondescription of the resolution for the current issue


issue:resolution:sequenceorder position of the resolution for the current issue

priority



issue:priority:id current issue priority id


issue:priority:name

name of the priority for the current issue

(warning)name is a default value 

issue:reporter:name  is equal to issue:reporter



issue:priority:descriptiondescription of the priority for the current issue


issue:priority:sequenceorder position of the priority for the current issue

type



issue:type:idcurrent issue type id


issue:type:name

current issue type name 

(warning)name is a default value 

issue:type:name  is equal to issue:type



issue:type:descriptioncurrent issue type description


issue:type:sequenceorder position of the type for the current issue

assignee



issue:assignee:idcurrent issue assignee id


issue:assignee:keycurrent issue assignee key


issue:assignee:name

current issue assignee name

(warning)name is a default value 

issue:assignee:name  is equal to issue:assignee



issue:assignee:full_namecurrent issue assignee full name


issue:assignee:emailcurrent issue assignee email


issue:assignee:email_domaincurrent issue assignee email domain

reporter



issue:reporter:idcurrent issue reporter id


issue:reporter:keycurrent issue reporter key


issue:reporter:name

current issue reporter name

(warning)name is a default value 

issue:reporter:name  is equal to issue:reporter



issue:reporter:full_namecurrent issue reporter full name


issue:reporter:emailcurrent issue reporter email


issue:reporter:email_domaincurrent issue reporter email domain

components



issue:components:idcurrent issue
component id
components ids separated by comma


issue:components:name

current issue components

name,

names separated by comma

(warning)name is a default value 

issue:components:name  is equal to issue:components



issue:components:descriptioncurrent issue components
desciption
descriptions separated by comma

fix_versions



issue:fix_versions:idcurrent issue fix
version id
versions ids separated by comma


issue:fix_versions:name

current issue fix

version name

versions names separated by comma

(warning)name is a default value 

issue:fix_versions:name  is equal to issue:fix_versions



issue:fix_versions:descriptioncurrent issue fix
version description
versions descriptions separated by comma

affected_versions



issue:affected_versions:idcurrent issue affected
version id
versions ids separated by comma


issue:affected_versions:name

current issue affected

version name

versions names separated by comma

(warning)name is a default value 

issue:affected_versions:name  is equal to issue:affected_versions



issue:affected_versions:descriptioncurrent issue affected
version
versions description separated by comma

labels



issue:labels:idcurrent issue labels ids separated by comma


issue:labels:name

current issue labels names

,

separated by comma

(warning)name is a default value 

issue:labels:name  is equal to issue:labels


attachments



issue:attachments:idcurrent issue
attachment
attachments ids separated by comma


issue:attachments:name

current issue

attachment

attachments names, separated by comma

(warning)name is a default value 

issue:attachments:name  is equal to issue:attachments



issue:attachments:file_sizecurrent issue
attachment file sizes
attachments files sizes separated by comma


Project level specific values



Placeholder expressionresult value
project




project:idcurrent project id


project:keycurrent project key


project:name

current project  name

(warning)name is a default value 

project:name  is equal to project



project:urlcurrent project url


project:descriptioncurrent project description

category


project:category:idcurrent project category id


project:category:name

current project category name

(warning)name is a default value 

project:category:name  is equal to project:category



project:category:descriptioncurrent project category description

lead


project:lead:idcurrent project lead if


project:lead:keycurrent project lead key


project:lead:name

current project lead name

(warning)name is a default value 

project:lead:name  is equal to project:lead



project:lead:full_namecurrent project lead full name


project:lead:emailcurrent project lead email


project:lead:email_domaincurrent project lead email domain

components


project:components:idcurrent project components ids separated by comma


project:components:name

current project components ids separated by comma

(warning)name is a default value 

project:components:name  is equal to project:components



project:components:descriptioncurrent project components descriptions separated by comma


project:components:lead_namecurrent project components leads' names separated by comma

versions


project:versions:idcurrent project versions ids separated by comma


project:versions:name

current project versions names separated by comma

(warning)name is a default value 

project:versions:name  is equal to project:versions



project:versions:descriptioncurrent versions descriptions separated  by comma


project:versions:is_archivedboolean value (true/false) of the current project versions is archived field


project:versions:is_releasedboolean value (true/false) of the current project versions is released field


project:versions:release_datecurrent project versions release dates separated by comma


project:versions:start_datecurrent project versions start dates separated by comma

Project level specific values


Placeholder expressionResult value
current _user




current_user:idid of the current user
current_user:keykey of the current user
current_user:name

name of the current user

(warning)name is a default value 

current_user:name  is equal to current_user

current_user:full_namefull name of the current user
current_user:emailemail of the current user
current_user:email_domainemail domain of the current user


Example placeholders for basic Jira values

Below you can find some example of the placeholders with the queries


Code Block
select name,price from sandwich_menu where restaurant={customfield:10010}


Custom Field Values

Single Value types

  • Date (should be treated as dates in our date column types)
    • Date Picker
    • Date Time Picker
  • Numeric (should be treated as dates in our date column types)
    • Number Field
  • All other custom fields without a specific type should be handled the same way - get custom field value as a string

Multi-Value types

  • Checkboxes
  • Labels
  • Radio Buttons
  • Select List (cascading)
  • Select List (multiple choices)
  • Group Picker (multiple groups)
  • User Picker (multiple users)
  • Version Picker (multiple versions)



Example placeholders for custom field values


Code Block
customfield:{id}


Code Block
titleexample
customfield:12345 // retreives data from the custom field with id 12345