At Xray Server/DC a Test environment is custom field (label) that will be used to identify the environment where you will perform a specific Test.


If you need to check all the Test Environments created at your instance, an easy way to do it is: 

  • Create a dashboard
  • Add a label gadget and select the field Test Environment (Figure 1). 


Figure 1




You will get a result as in Figure 2.  Use the labels to easily navigate  to the specific issues that use the specific environment.

Figure 2




The information around Test Environment is also possible to get directly for the database. 

SQL script for SERVER/DC

select distinct(l.label) as test_environment from jiraissue j join issuetype as it on (it.id=j.issuetype)
left join label l on l.issue = j.id where it.pname in ('Test Execution','Sub Test Execution') and l.fieldid in (select id from customfield where customfieldtypekey='com.xpandit.plugins.xray:test-environments-custom-field');


Learn more: