Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In Confluence Questions is there any way of editing reputation thresholds?

In Confluence Questions is there any way of editing reputation thresholds?

 

For example: By default users need 500 points to be able to edit a topic, if I wanted to change this to be 250 points is there any way of achieving this?

1 answer

1 accepted

5 votes
Answer accepted
Joe Clark Atlassian Team Jan 08, 2015

There's not yet an official, supported & documented way to do this.  However, there is a secret REST API that allows this.  You'll need to write and execute a script to make the change.  Here's an example in Python using the Requests library:

import sys
import requests
confluence_url = "http://localhost:1990/confluence"
username = "admin"
password = "admin"
s = requests.session()
# Login with Admin username/password
r = s.post(confluence_url + "/dologin.action", data={"os_username": username, "os_password": password})
if r.status_code != 200:
    print "Login failed"
    print r.text
    sys.exit(1)
# Change the topic reputation threshold to 250 points
r = s.post(confluence_url + "/rest/questions/1.0/admin/permissionThreshold", data={"EDIT_TOPIC": "250"})
if r.status_code != 200:
    print "Failed to update permission threshold"
    print r.text
    sys.exit(1)
    
print "Permission Threshold updated successfully"

 

Edit:

Here are the permissions which can be controlled by reputation limits, and their default thresholds.  You can update them all in a single POST request to the REST API by specifying each one as an individual form parameter.

  • CREATE_DOWN_VOTE - 15
  • UPDATE_QUESTION_TOPICS - 100
  • DELETE_COMMENT - 500
  • UPDATE_QUESTION - 500
  • UPDATE_ANSWER - 500
  • CONVERT_COMMENT - 1500
  • CONVERT_ANSWER - 1500
  • EDIT_TOPIC - 500
  • ACCEPT_ANSWER - 1500
  • UNACCEPT_ANSWER - 1500

 

 

That's great - thank you for that. We will be wanting to customise all of the reputation settings, could you let me know the data tags for each one (vote down, delete, etc)? Thank you for your help.

Joe Clark Atlassian Team Jan 09, 2015

I updated my answer with the full list

Thank you very much

Joe Clark Atlassian Team Jan 12, 2015

No problem! :)

One key question would be how to GET the current value of these settings?  

(So that we can verify that the POST works.)

(It appears that the permissionThreshold resource only provides a POST method, no GET method.)

What I am trying to do is prevent non-admins from creating new topics.

Raising the UPDATE_QUESTION_TOPICS threshold (using the Python + REST script) seems to partially accomplish this – it prevents someone from creating a new topic for a question asked by someone else.

But none of these seem to affect the user's ability to create a new topic for a question they have asked.  Is there a way to do this?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

101 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you