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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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