creecros / Group_assign

Kanboard Plugin to Assign Tasks to Groups and multiple users
MIT License
62 stars 24 forks source link

Can not select a group from drop-down list #7

Closed ru2mm closed 6 years ago

ru2mm commented 6 years ago

Hi "Assign task to a group on creation or movement" does not work correctly. I can not select a group from drop-down list, because I do not see check box for drop-down list. I did some groups in Kanboard and added some users in groups. I typed a group name to the field "Group" in "Define action parameters" window and saved successfully. When I create a new task I get an error: Internal Error: SQL Error: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "MYGROUPNAME". What I am doing wrong?

Kanboard v.1.2.5 Postgresql10-server-10.5

Thank you.

creecros commented 6 years ago

Never tested with postgres, I'll take a look and see if I can work it out for you.

creecros commented 6 years ago

tested with 1.2.5 and mysql, works fines.

Can you screen shot the missing dropdown list? Also, did you add a group to the project under the permissions of project?

creecros commented 6 years ago

Oh, also, you say you "typed" the name of the group in "define action parameter", but that shouldn't be possible, it's a dropdown. How you do this? You edit the code?

If you did, and your manually adding the group into the code, it should be stored as an integer. But it still won't work if the group isn't added to the project, since it won't have the permissions.

ru2mm commented 6 years ago

Thank you for your answer! I didn't edit the code. I send you email with screenshots, because I can not attached it here.

creecros commented 6 years ago

Try putting the group id # in that field, not sure why it is showing like that though, it should be a dropdown. can you list all other plugins you have installed? There may be a conflict, especially if there are any CSS Theme plugins.

Also, How did you install?

ru2mm commented 6 years ago

I have put the group id # in that field. The error disappeared, but users from this group did not receive notification by email. I think it is plugins conflict.

creecros commented 6 years ago

I never added an EVENT for group change, so there won't be a notification. I did however include an action to email users for a group, so you would have to use that. It would also require an integer for the group, assuming you don't get the dropdown box like the other action.

image

ru2mm commented 6 years ago

Thank you for this solution, but this is not quite the case. I use "Assign the task to a specific user" and it works fine! I want to use "Assign the task to a specific group". It will allow users not to choose whom to assign the task to. I will continue use automatic action "Assign the task to a specific user" for every group members as workaround solution.

creecros commented 6 years ago

I had planned to add that feature, so I might get to it, eventually.

creecros commented 6 years ago

This plugin is conflicting with it: https://github.com/creecros/AutoSubtasks

They both are overriding the action_creation template, params.php.

I'll see if there is a way around it. Putting on my to do list.

creecros commented 6 years ago

For now, you can use the previous version of AutoSubtasks, if you want. It didn't use an override. https://github.com/creecros/AutoSubtasks/releases/download/0.0.1/AutoSubtasks-0.0.1.zip

creecros commented 6 years ago

Updated Autosubtask Plugin to prevent conflict you can download here: https://github.com/creecros/AutoSubtasks/releases/download/0.0.3/AutoSubtasks-0.0.3.zip

The update will be available on the Kanboard plugin page once the pull request is merged, and then it will show that an "Update is available", if you want to wait.

ru2mm commented 6 years ago

Hi Many thanks for rapid reaction for my question. I tested your solution. I reinstalled AutoSubtask plugin from 0.0.2 version to 0.0.3 version. Problem with drop-down list was resolved. It is super! I did automatic action "Assign the task to a specific group". But group members can not receive email notification after task creation. Group members and Group have permissions "Project Member" in this project. Could you check email notification in your environment? Thank you.

creecros commented 6 years ago

Nothing to check. It's simply not a function of the plugin as of yet.

image

You'll notice in the Readme, i have it planned for future enhancement, but I am currently working on another plugin: https://github.com/creecros/MetaMagik which I plan to finish before getting back to this plugin.

Currently, you can use the "Send a task by email to assigned group members", which will email the entire group assigned. It functions as a notification, and can also be set to do so during task creation.

ru2mm commented 6 years ago

Thank you for information! I will wait a stable release of MetaMagik plugin. I think this plugin will very helpful. Sorry for disturbing.

creecros commented 6 years ago

No worries, thank you for finding that conflict.

creecros commented 5 years ago

@ru2mm Users will now receive notifications if they are in the assigned group or the multiselect. https://github.com/creecros/Group_assign/releases/tag/1.3.0