Hi,
we want to present FIGMA UX Prototypes to users and add votes to corresponding jira issues if a user clicks a defined element. Since a simple link is the only possible event that can be attached to an element, I was checking if there is a way to integrate the "vote" function into the URL.
It seems that this is not possible as the vote link in the issues detail view contains a user specific token, but maybe somebody knows a way to achieve this.
Cheers
Armin
Hello @Armin Meyer (Coderay) ,
Using a direct link would not work, as the Vote option is going to be tied to a logged in user, and as part of the logged in user, will have a authentication token attached to the URL, that is created from and tied to the user session, so a vote URL would look something like:
https://<BASE_URL>.atlassian.net/secure/VoteOrWatchIssue.jspa?atl_token=<ALT_TOKEN_WILL_BE_HERE>&id=<issue_ID_as_number_database_referance>&vote=vote
The token will be unique and different for each user and session so there is no way to hard code it into a url to perform a function, and If the authentication token is removed then you will hit errors as a security measure to prevent cross site scripting attacks
Also as a vote needs to come from an authenticated user as well so the remote system would also need to be able to pass the users credentials into Jira with the vote action, and the Jira API is designed for external application integrations. If Figma can trigger an API POST call into the element then you could tie into the Jira API for external application integration like the following example to trigger a vote, using:
I am not familiar with the capabilities of Figma, but doing a bit of research I found a Figima Community at the following link where they may be able to help you out further to see if a API call can be made and pass in the needed authentication headers from your element instead of a static URL.
Regards,
Earl
Hi Earl,
thanks a lot for your answer. It's a good idea to check if there is a way to fire an API call from Figma.
I'll add the information here if I find a way.
Regards,
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.