Hello,
In service desk v2. context, i am looking for a way to filter a kepler custom DBCF field's data, based on the issue's reporter (user).
sample query:
select distinct summary from jiraissue where project = 10300 AND issuestatus = 10201 and reporter = {reporter};
This functionality only works for "agent-users", for which the portal page exposes the reporter as an editable field ("Raise this request on behalf of")
However, for regular "customer-users", this reporter field is not exposed. Here the reporter value doesn't get passed to the dynamic query behind the DBCF field.
It seems that the field value used in the dynamic query needs to be visible & editable on the screen.
How to use the (customer-user ) current-user / reporter in a Dynamic Query (SQL) in context of a DBCF ServiceDesk portal field?
http://confluence.kepler-rominfo.com/pages/viewpage.action?pageId=4161561
Limited Workaround
When the user is member of "jira-users" group (and counts towards JIRA license count),
including {currentuser} in the WHERE- clause seems to do the trick..
Select distinct summary from jiraissue where project = 10300 AND issuestatus = 10201 and (reporter = {reporter} or reporter = {currentuser});
However, when the user is *a pure* servicedesk customer-user & does not belong to 'jira-users' group, the functionality doesn't work.
So the question remains:
How to pass a servicdesk customer-user / reporter to the dynamic SQL, used on a SD portal?