tomolimo / processmaker

GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
30 stars 11 forks source link

Self service assignment rule #76

Closed shahmilan34 closed 6 years ago

shahmilan34 commented 6 years ago

Hi, I want to assign a task to Group so that any user from that group can claim and work on task. This functionality is working in Processmaker Server but not in GLPI. Version: Processmaker-Server Release 3.0.1.8-RE-1.8 GLPI : 9.2.4 Plugin : 3.2.8

assignmentrules processclaim claim_task_pro

tomolimo commented 6 years ago

Hello @shahmilan34

Did you define this "test" group in GLPI? And with the users in it?

By design, the groups and the users must come from GLPI and are synchronized into PM server by the automatic action named pmusers. could you check that this cron is scheduled?

thank you regards, Tomolimo

shahmilan34 commented 6 years ago

Yeah It worked. 👍 But then i have to make same groups in processmaker server and GLPI containing GLPI users. Can we sync GLPI Groups to processmaker by some automatic Action, I am also working on this.

Thank you for your response and support.

tomolimo commented 6 years ago

Hello Pmusers cron is doing that job too. It's doing copy of GLPI users and groups into PM server. See https://github.com/tomolimo/processmaker/wiki/Automatic-actions Thank you Regards Tomolimo

shahmilan34 commented 6 years ago

I did tried making groups in GLPI and then running pmuser action before the previous comment but those groups did not get displayed in processmaker.

There is one configuration in plugin to choose Group in processmaker which will contain all the synced users from GLPI so by selecting it, all GLPI users get assigned to that group.

So why there is option to select one group if all users and groups are getting synced by Automatic Action.

Thank you.

tomolimo commented 6 years ago

those groups did not get displayed in processmaker.

This means that something went wrong Check the logs.

So why there is option to select one group if all users and groups are getting synced by Automatic Action

This group doesn't need to be created in GLPI. That's the only reason. And in the future, we may delete this option which is only used for convenience.

Regards Tomolimo

shahmilan34 commented 6 years ago

There are no Errors in logs after running pmusers action.

tomolimo commented 6 years ago

Did you try to add a new group before running the cron?

tomolimo commented 6 years ago

A new group with users in it?

shahmilan34 commented 6 years ago

Yes, I already tried it twice and tried one more time. Action synced my new user but not the new group

tomolimo commented 6 years ago

I'll make a test for you with the 9.2.4, and I'll keep you posted

shahmilan34 commented 6 years ago

Yeah sure. Thank you

tomolimo commented 6 years ago

Hello @shahmilan34

Group synchronization issue:

I made test with GLPI 9.2.4 and PM server 3.0.1.8-RE-1.8, like shown below: image

I defined a group with two users: image

I've launched the pmusers automatic action, and I got the test group and the users to be added to PM, like shown below: image

Don't forget that a group must be visible to Tasks and must contains "Users" to be synchronized into PM, see: https://github.com/tomolimo/processmaker/wiki/GLPI-groups-are-not-synchronized-into-PM-server

Missing "Claim this case" button issue:

  1. I've created a small process to test this: image
  2. with a small form: image
  3. and assignments: image image
  4. I run it in a newly created ticket:
  5. I submitted the first task, and got the second one: image

Don't forget that your current GLPI connected user (here glpi) must be in the group 'test', otherwise, it will not show the button. Beware if current GLPI user is assigned to a group, you need to logout/login into GLPI to get this group assignement taken into account.

Thank you, Regards, Tomolimo

shahmilan34 commented 6 years ago

Yeah it worked. I found my mistake, I was not setting Task to 'yes' while creating groups.

Thank you for help, really appreciated

tomolimo commented 6 years ago

Hello @shahmilan34 you're welcome Thank you Regards, Tomolimo