Hi,
Currently jira built in voting button only allows to vote for an issue which means a yes. And those who do not vote for it are either the ones who never voted or voted against it. But those who want to vote against it can't do that through the voting button and we have an important requirement as such pertaining to this aspect in our organisation where we want to implement something similar so that we can track in real time who are the ones that negatively voted for an issue. As such comments are definitely not a good option.
I see there were couple of similar requests submitted to atlassian but were outrightly rejected and closed
https://jira.atlassian.com/browse/JRASERVER-756?error=login_required&error_description=Login+required&state=0592e4d8-363f-4623-8c2c-15fab6c8bc48
Also the closest plugin i see is :-
https://marketplace.atlassian.com/apps/1216689/voting-extension-for-jira?hosting=server&tab=overview
Is there an alternate way to do it without the usage of any additional plugins either through some fields or something in the workflow that we could implement? If not which would be the appropriate plugin to help achieve this functionality? Its such a normal functionality that you get to see in email outlook and still something we don't have in jira. Right now we are managing this "Yes" vs "No" vote options through outlook.
Cheers,
Ashley
I'm afraid the (very very very basic) voting system in Jira is pretty much part of the core and the only way to get a better one is to use an app to do it.
You might be able to do something in workflow, or even outside it, but it would need coding itself. With Scriptrunner, I've implemented a very very simple, but slightly improved system:
That gave people more of a rating than a vote, but you can implement whatever scheme you wanted this way.
You'll want to create (some) scripted fields to display things like
Thanks Nic for the suggestion. I believe we will eventually use script runner as its one single plugin that servers multiple purposes so worth every penny. Having said that if use it to implement what you are suggesting, what would be the simplest approach when it comes to let's say i have 5 fields for five different users and i would like each field to be editable by only that respective user and that field has the option for vote yes or no. So lets say five different custom fields namely A,B,C,D,E and each is a may be scripted custom field of type dropdown single select with options yes or no and only can be edited by its respective user. Or may be something similar if that helps what i am looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That was just an example of one scheme for voting that I did write once, there's plenty of other ways to do it.
The important thing, which I think you've stated more clearly than I did, is that you record who has voted for (or against) the issue so that they can only vote once.
Using my "custom field to store list of people" principal, for your Yes/No, you only need three, or possibly even two. One for Yes, one for No, and (possibly) a third for "I want to tell you I have an opinion voted, but not for yes or no" if you want to record that.
Your approach of having a yes/no field that behaves differently per user may not be possible in Scriptrunner, I think you'll need a plugin with supporting code for it. Scripted fields display data, they don't accept input. You'd need a field that is a simple yes/no select list, but you'd need to capture every edit of it, work out what the intention is on edit, and then store something that captures a list of all the users who change it, and overrides the content. You'd need a second field to store that calculated content, and the yes/no would not be able to display the value for the current user, you'd need another scripted field to show that (and I'm not sure you could do that because I don't think behaviours can work with view fields). All of the data for all of those fields would be useless for display in other places as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nic for the clarifications here and the insight.
After giving a though to it i am thinking what if we go with lets say five separate vote transitions (each with condition for each user) which will present a transition screen with that vote dropdown (yes/no) as required validator for each person. So lets say five people and five vote fields (one for each). Each transition will have a loopback transition as post function which means once the issue is created and is Open state, then there is a vote transition button for each of this people as they view the issue and the moment they click on that status transition, it updates the corresponding vote field (for that person), and as a post function performs another transition back to the original status. All of it seems easy to implement except for how to transition back to the original status as part of post function. Any suggestions? we don't want to use another plugin like JMWE. So anything that can be done within the native capabilities or via script runner should be fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will not work well - you would need a separate field for every single user to record their vote, and some way to stop a user changing other people's votes.
The process of updating a vote by workflow is sound though - you can loop a transition back to the same status, you don't need any scripting or code to do that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is what i did and so far seems to be working great but is not a scalable solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My thoughts off the cuff....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jack for the prompt response!
Anyway we could achieve this from a permission perspective. I know if you edit permission you can edit any field and so that won't work effectively for us.
Also from plugin perspective is voting-extension-for-jira the only plugin for this?
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.