Forums

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

Qanda: Can't approve my answers

Francesc_Arbó November 19, 2013

Hi,

I'm using JIRA version 6.0.8 an the QANDA plugin version 1.0.8-j6.

My problem is when users ask a question and this is answered, only users with administrator rights inside the JIRA Project can approve the answer (I tested every single right of the project and only worked for the administrator right). Is this the real way of use? Do I need some specific permissions in order to approve the answers of my questions?

PD: Users can browse the issue and make comments.

8 answers

1 accepted

0 votes
Answer accepted
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2013

Thanks for the log, we have found the bug; an update will follow shortly (expect one in the next couple of days)

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2013

I have released yesterday the version 1.0.9 (QandA) and 1.0.3 (QandA PRO) containing the fix for this problem. Let me know if everything is ok now.

0 votes
Francesc_Arbó November 27, 2013

Hello Radu,

Thank you in advance for the update. I have tested the plugin upgraded and, now, the user can approve the answers of his question. However, he can't reject them because he is not an admin of the project or the project lead.

Florin Manaila
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2013

Hi Francesc,

Could you show us the logs for this problem? Was the question added when you were using the old version ? Does it happen for new questions as well ?

0 votes
Francesc_Arbó November 24, 2013

Great!

I'm glad to help you! :-D

0 votes
Francesc_Arbó November 24, 2013

Hello Radu,

Here I paste you the filtered log. What I have done is the following:

1. I have logged with user rsi and asked a question in the issue PUBLIC-5.

User rsi is not admin or lead.

2. User farbo.pwc, who is admin of the project, answered twice. He can approve or reject his own answers.

3. User rsi can't approve or reject and enter an answer. He can't approve or reject any answer.

2013-11-25 16:12:01,663 http-bio-8080-exec-15 DEBUG RSI 972x9942x1 1oyau3v 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [jira.qanda.gadget.GadgetRestService] Getting questions for project:GENCAT<
2013-11-25 16:12:01,663 http-bio-8080-exec-15 DEBUG RSI 972x9942x1 1oyau3v 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [agrade.jira.qanda.QandAServiceImpl] Loading questions for project GENCAT
2013-11-25 16:12:01,674 http-bio-8080-exec-15 DEBUG RSI 972x9942x1 1oyau3v 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [agrade.jira.qanda.QandAServiceImpl] Done loading questions for project GENCAT
2013-11-25 16:12:12,486 http-bio-8080-exec-16 DEBUG RSI 972x9985x1 1oyau3v 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:12:12,489 http-bio-8080-exec-16 DEBUG RSI 972x9985x1 1oyau3v 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5
2013-11-25 16:12:31,652 http-bio-8080-exec-12 DEBUG RSI 972x9987x1 1oyau3v 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addquestion [jira.qanda.issuepanel.PanelRestService] Adding question:PUBLIC-5< >User rsi ask a question<
2013-11-25 16:12:31,658 http-bio-8080-exec-12 DEBUG RSI 972x9987x1 1oyau3v 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addquestion [jira.qanda.listeners.StandardListener] Received event QUESTION_ADDED (Issue PUBLIC-5, User Usuari tipus RSI)
2013-11-25 16:12:31,762 http-bio-8080-exec-20 DEBUG RSI 972x9988x1 1oyau3v 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:12:31,766 http-bio-8080-exec-20 DEBUG RSI 972x9988x1 1oyau3v 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5
2013-11-25 16:12:55,123 http-bio-8080-exec-20 DEBUG farbo.pwc 972x10070x1 bjogl4 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:12:55,126 http-bio-8080-exec-20 DEBUG farbo.pwc 972x10070x1 bjogl4 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5
2013-11-25 16:13:12,441 http-bio-8080-exec-20 DEBUG farbo.pwc 973x10071x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.issuepanel.PanelRestService] Adding answer:10301 >user farbo.pwc answers this question<
2013-11-25 16:13:12,448 http-bio-8080-exec-20 DEBUG farbo.pwc 973x10071x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.StandardListener] Received event ANSWER_ADDED (Issue PUBLIC-5, User Francesc Arbó Vasco)
2013-11-25 16:13:12,448 http-bio-8080-exec-20 DEBUG farbo.pwc 973x10071x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.StandardListener] Notify user rsi on event ANSWER_ADDED
2013-11-25 16:13:12,448 http-bio-8080-exec-20 DEBUG farbo.pwc 973x10071x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.AbstractEmailMessageHandler] Email task submitted
2013-11-25 16:13:12,565 http-bio-8080-exec-20 DEBUG farbo.pwc 973x10072x1 bjogl4 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:13:12,569 http-bio-8080-exec-20 DEBUG farbo.pwc 973x10072x1 bjogl4 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5
2013-11-25 16:14:07,697 http-bio-8080-exec-7 DEBUG farbo.pwc 974x10122x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.issuepanel.PanelRestService] Adding answer:10301 >In addition, user farbo.pwc can approve or reject his own answer when the question is made for another user because farbo.pwc is an admin of this project.<
2013-11-25 16:14:07,707 http-bio-8080-exec-7 DEBUG farbo.pwc 974x10122x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.StandardListener] Received event ANSWER_ADDED (Issue PUBLIC-5, User Francesc Arbó Vasco)
2013-11-25 16:14:07,707 http-bio-8080-exec-7 DEBUG farbo.pwc 974x10122x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.StandardListener] Notify user rsi on event ANSWER_ADDED
2013-11-25 16:14:07,710 http-bio-8080-exec-7 DEBUG farbo.pwc 974x10122x1 bjogl4 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.AbstractEmailMessageHandler] Email task submitted
2013-11-25 16:14:07,823 http-bio-8080-exec-7 DEBUG farbo.pwc 974x10123x1 bjogl4 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:14:07,827 http-bio-8080-exec-7 DEBUG farbo.pwc 974x10123x1 bjogl4 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5
2013-11-25 16:14:27,283 http-bio-8080-exec-3 DEBUG RSI 974x10213x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [jira.qanda.gadget.GadgetRestService] Getting questions for project:GENCAT<
2013-11-25 16:14:27,283 http-bio-8080-exec-3 DEBUG RSI 974x10213x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [agrade.jira.qanda.QandAServiceImpl] Loading questions for project GENCAT
2013-11-25 16:14:27,294 http-bio-8080-exec-3 DEBUG RSI 974x10213x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [agrade.jira.qanda.QandAServiceImpl] Done loading questions for project GENCAT
2013-11-25 16:14:43,752 http-bio-8080-exec-6 DEBUG RSI 974x10229x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [jira.qanda.gadget.GadgetRestService] Getting questions for project:PUBLIC<
2013-11-25 16:14:43,752 http-bio-8080-exec-6 DEBUG RSI 974x10229x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [agrade.jira.qanda.QandAServiceImpl] Loading questions for project PUBLIC
2013-11-25 16:14:43,763 http-bio-8080-exec-6 DEBUG RSI 974x10229x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/gadget/getquestions [agrade.jira.qanda.QandAServiceImpl] Done loading questions for project PUBLIC
2013-11-25 16:14:45,155 http-bio-8080-exec-6 DEBUG RSI 974x10231x1 374z2n 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:14:45,158 http-bio-8080-exec-6 DEBUG RSI 974x10231x1 374z2n 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5
2013-11-25 16:15:42,435 http-bio-8080-exec-12 DEBUG RSI 975x10245x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.issuepanel.PanelRestService] Adding answer:10301 >User rsi can't approve or reject any of the two answers because he isn't an admin of this project or the lead.<
2013-11-25 16:15:42,441 http-bio-8080-exec-12 DEBUG RSI 975x10245x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.StandardListener] Received event ANSWER_ADDED (Issue PUBLIC-5, User Usuari tipus RSI)
2013-11-25 16:15:42,441 http-bio-8080-exec-12 DEBUG RSI 975x10245x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.StandardListener] Notify user rsi on event ANSWER_ADDED
2013-11-25 16:15:42,442 http-bio-8080-exec-12 DEBUG RSI 975x10245x1 374z2n 10.240.88.50,127.0.0.1 /rest/agrade/qanda/latest/panel/addanswer [jira.qanda.listeners.AbstractEmailMessageHandler] Email task submitted
2013-11-25 16:15:42,542 http-bio-8080-exec-17 DEBUG RSI 975x10246x1 374z2n 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Loading questions for issue PUBLIC-5
2013-11-25 16:15:42,545 http-bio-8080-exec-17 DEBUG RSI 975x10246x1 374z2n 10.240.88.50,127.0.0.1 /browse/PUBLIC-5 [agrade.jira.qanda.QandAServiceImpl] Done loading questions for issue PUBLIC-5

0 votes
Francesc_Arbó November 24, 2013

So, as I see, the user who ask the question must be the project lead or an admin of the project in order to approve or reject. Isn't it?

On the other side, how can I debug the log on ro.agrade package?

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2013

No, it must be either 1/ the user that asked the question or 2/ admin or lead on the project

Log: Admin->System->Logging & Profiling->Configure logging level

0 votes
Francesc_Arbó November 24, 2013

Hello Radu,

this is a snapshot of the question asked for the user RSI (logged in this snapshot) and answered for another user (in this case, the admin user answered). In this snapshot, the RSI can't approve the answer because there's no button to push in order to validate or reject.

When I give admin permissions to the RSI user in this JIRA Project in the Permission Scheme, RSI can approve or reject the answer.

The main problem is that no user will be admin in any project except the admin user.

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2013
The user is checked with the following routine:

public static boolean isUserOwner(PermissionManager permissionManager, Issue issue, ApplicationUser user, String owner) { return (owner.equals(user.getName()) || isUserLeadOrAdmin(permissionManager, issue, user)); }

where: user is the current user and owner is the user asking the question.

Does this happen only for that user? For all users ? Can you send me the log filtered for QandA (just enable debug on ro.agrade package)?

0 votes
Francesc_Arbó November 24, 2013

Hello Radu,

It's still the same. Only users with administrator rights in the project (permission scheme) can approve the answer. If the user isn't an administrator in the project he can't approve.

I really don't know what else I can test.

This is the reason why I asked what permissions need a user in order to approve an answer.

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2013

So the owner of the question cannot approve it? Can you share a print screen with us ?

rdumitriu at gmail.com

EDIT: make the print screen as the user that asked the question

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2013

Hi Francesc

As I explained you on FB, it works for me, I retested it. I need more info on the subject.

Only users asking the questions are able to approve an answer. The flow is:

i/ User1 asks a question

ii/ User2 responds. He cannot approve the his own answer, unless user1=user2 (self answered) or admin.

iii/ User1 approves the answer

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2013

Any news on this one? I would really like to have a resolution on it.

Suggest an answer

Log in or Sign up to answer