Hello!
I'm using User Points module at our company site, and have Bugbits integrated Mantis in our system.
I have a problem, that I cannot find answers to here:
- is there any way to make a bug report (integrated mantis with bugbits module) award points to a registered user who reports an issue?
All help is greatly appreciated!
kindest regards,
MerjaS
Comments
Comment #1
daften commentedThis will probably not be possible, because everything (including issue posting) is handled inside mantis and there is no way to detect an update. Mostly because the mantis api sucks.
Comment #2
MerjaS commentedThats too bad.. But anyway, thanks for letting me know.
I was anticipating something like this, because I found no discussion about this, but needed to check.
But isn't there any way to go round this? Any "mantis enthusiasts" here?
Comment #3
MerjaS commentedhi!
thanks to kbahey for this information (in another thread):
"You can do it via the Userpoints Services module included with userpoints. This has been released 2 years ago, and some sites use it for exactly that. See Userpoints gets services module integration, provides points repository via XML-RPC. Another route is if you get a CSV file from the other system and then have a custom script read it and call userpoints to add the points to the users."
BR,
MerjaS
Comment #4
MerjaS commentedAll help will be greatly appreciated:
At the site, when a User creates an account at our Drupal based web community, he/she gets also an account at Mantis. That's great. But my problem is that the new User becomes a viewer only, not able to report any bugs (except anonymously). Is there a way to make all new Users automatically reporters?
I have updated the access levels of current Users manually one by one in Mantis, but this will not be an option in the future.
Kind regards,
MerjaS
Gurux Ltd
http://www.gurux.org
Comment #5
daften commentedThe default role for a user is set in Mantis itself I think.
Otherwise in the code in _bugbits_create_user there is an SQL query where the number 10 is the access level. It's been a long time, so I don't now the exact correspondence, but that could be your answer as well. Changing that number to another access level will give users more rights.
Did this help you?
Comment #6
MerjaS commentedHi daften,
I've been trying to get information about this, and posted to mantis forum (http://www.mantisbt.org/forums/viewtopic.php?f=3&t=12132).
From there I got the following, simple instructions:
in "config_inc.php" file replace line:
$g_default_new_account_access_level
with line:
$g_default_new_account_access_level = REPORTER;
This seemed too good to be true, and (even if I'm no coder) I encouraged myself to find that file, take a backup copy of it and opened it in notepad to edit it, but... there is no such line in our "config_inc.php" file.
In our config_inc.php file "allow signup" and "lost password feature" are both "OFF", commented with lines:
# This will make sure your users can't use your separate mantis setup to register or change
# their password, everything should go through drupal.
I agree, this is the way we want to do this, too: everything should go through Drupal, I just don't have the line to replace.
I kept looking, and I found
# --- signup default ---------------
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;
in "config_defaults_inc.php" file, in our bugbits folder. This file is NOT to be edited, though, they said at mantis forum. So, now I'm wondering, can I just add those three lines (above) in our bugbits\config_inc.php file?
I feel pretty silly asking this, but I can no longer check this with the one who originally set the bugbits module up at our site, but really need to get this done. So all, and any, help is greatly appreciated!
Thanks & regards,
MerjaS
Comment #7
daften commentedHi,
Yes, adding those three lines should solve your problem (the first two lines are only comments, so they are not even necessary). If it doesn't work, you can just delete them afterwards :)
kind regards,
daften
Comment #8
MerjaS commentedThanks, daften!
Got that done, now I'm just waiting for a new user to create a new account to see if this really works. Hope so!
Thanks & regards,
MerjaS
Comment #9
MerjaS commentedHi again,
for some reason this doesn't seem to work.
Any other ideas? Anyone?
Comment #10
tmckeown commentedHi MerjaS,
I might be able to help you out. I need to get everything all set up on my local machine, because I haven't touched this project in close to a year. Could you help me out with the versions of drupal you are using, the version of mantis you are using, and a mantis db sql dump? I am thinking I might added some configuration to drupal to allow auto assigning of roles when a user is created/update. I think that would cover your use case right?
Thanks,
Trevor
Comment #11
MerjaS commentedHello Trevor,
Thank You for Your response! It would be great if You could add this auto assigning feature.
We use Drupal 6.19, and Mantis 1.1.8 versions. With the bugbits -module they work nicely together.
About the "a mantis db sql dump" (this is total jargon to me, as I am not familiar with databases, nor Mantis itself), our developers wanted me to ask You, if there is a special table/tables, that You would need the dump of, as it is so vast they don't see the relevance of sending it as a whole. Please, let me know the name(s) of the needed table(s)!
Thanks again,
MerjaS
Comment #12
tmckeown commentedMarjas,
I just need a complete mantis db dump in order to start development on this project again. A basic install of mantis won't be very helpful for testing or development and I would have to populate it with junk data. I promise the dump will not go beyond my personal computer.
Thanks,
Trevor
Comment #13
MerjaS commentedHi Trevor,
I'm sorry to say that we cannot provide the complete dump.
This is because the dump would include our users names and passwords.
We do believe that You genuinely just want to help, and that You would not use the information for anything else, either forward it to anywhere, but this is a question of user privacy, and we will not give our users even the slightest reason to mistrust us. This is very impotant to our company reputation.
I honestly want to thank You for offering to help me with this, but unfortunately can not provide the tools You requested.
Kindest regards,
MerjaS