Forums

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

Vote for an issue via link / get request

Armin Meyer (Coderay) August 13, 2020

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

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2020

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

Armin Meyer (Coderay) August 27, 2020

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

Like Earl McCutcheon likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events