Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve the project key in issue navigator

wong sin ooi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2017

Hi,

I am using this query to come out a list of request types which tied to the project key when searching for issue:

#if($issue.project.key)
select request_type_id, name
from tableA
where pkey = '$issue.project.key'
order by name
#else
select request_type_id, name
from tableA
order by name
#end

However, it seems like the $issue.project.key always return NULL because I always get the result from the else statement.

Could you please provide an alternative way?

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2017

Where is this velocity being rendered?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events