Hello,
I'm trying to set up Forms in Jira Service Management using a Data Connection as a source for a dropdown field.
We have an internal API that returns client-related information. To filter the results properly, we need to send a parameter to the Data Connection—specifically, the Atlassian user ID or email address of the user filling out the form.
The idea is to restrict the returned data so that the user only sees the information they are authorized to access. This filtering is handled by our API, but it requires a dynamic parameter to identify the current user.
Is it possible to send smart values (e.g., {{user.emailAddress}}
or {{user.accountId}}
) as query parameters or in the request header when the form calls the API?
Thank you in advance.
It's not about doing something complex…
The basic idea is simply to populate a dropdown list based on data specific to a user or a user group.
Is there any other solution to send the user ID to the API used for the data connection? Maybe with an add-on or some custom development?
I don't really see the point of calling an API that returns a dataset which can't be filtered...
Hi @Nicolas PR
I don't think so the data connection is there to use information from the external source in a form.
This can only be used in certain form fields, like single or multi select.
You can't sent information to the connected data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nicolas PR
You can reach API endpoints, see https://confluence.atlassian.com/proforma/data-connections-1087521268.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.