Closed alogez closed 7 years ago
Hello Alogez, Could you post a screen copy of this ticket task tab? thank you regards, Tomolimo
Hello Tomolimo,
Then,
In mysql, 2 records are displayed for this specific ticket :
Thanks, Alogez.
Tomolimo,
Let Aymeric and Chantal be two users (same profile : Self-Service, tightly tuned for processmaker purpose, and image copy also). One of them (Chantal) is starting from ticket a workflow. The second user, Aymeric, (processmaker in or out), can not see the Chantal's ticket.
Does the processmaker plugin allow the second user (Aymeric) to see his assigned task (through planning or somewhere else). How could it be possible to get this?
Alogez.
Normally yes, but it could be that the GLPI configuration is missing something. The plugin should add as 'watcher' any assigned person, when this person has no rights (via profile and entities) on the ticket., here is the 'post-only' (aka your self-service) profile:
Tomolimo, Thanks for your answer.
My interface is lightly different from yours.
Without success : nothing appears. I keep on changing properties for this profile.
Thanks again.
Alogez.
Try with 'voir tous les tickets'
Tomolimo,
Obviously, this setting works. Thanks! All the tasks appear therefore in the planning view. I keep on searching for a better setting. This kind of profile can not be able to see all the tickets.
Could you tell me a bit about "observer" field filled by processmaker plugin? Why can't I get the new record in glpi_tickets_users?
Thanks in advance,
Alogez.
The task assigned user is added as observer when and only when there is no profile/entity which can be used by the assigned user to view the task/ticket. In other words, imagine two users with self-service profiles one on entity A and the second on entity B. Then when ticket is in entity A, the second user doesn't have any profile/entity that will permit him to view the task/ticket, then the plugin will add the second user as observer to the ticket.
Tomolimo, Thank you. In my case, the root entity is dedicated to the company. Then, sub-entities are defined for any department (marketing, accounting, IT support, and so on) that needs his own ticketing system to solve any request.
Any colleague has at least 1 profile (for request, ie. Self Service), at most 2 profiles (request and "solver" => technician or admin). The solver profile is set within a specified entity. Self-service is set within root entity to allow person to create ticket for any service.
In my case, Chantal and Aymeric are both simple users (1 profile : Self Service over root entity). They both belong to the same entity (root one) but their profile disallow them to see each other tickets.
How could I proceed?
Thanks in advance,
Alogez.
Tomolimo, Thank you for your precious help.
I write it down to complete this issue.
To allow any assigned person to be quoted as observer for glpi ticket: From file processmaker/inc/processmaker.class.php
$user_entities = Profile_User::getUserEntities( $techId, true, true );
$user_can_view = in_array( $glpi_item->fields['entities_id'], $user_entities );
if (!$glpi_item->isUser( CommonITILActor::REQUESTER, $techId )
&& !$glpi_item->isUser( CommonITILActor::OBSERVER, $techId )
&& !$glpi_item->isUser( CommonITILActor::ASSIGN, $techId )
&& !$user_can_view ) {
Changes the lines as followed :
//$user_entities = Profile_User::getUserEntities( $techId, true, true );
//$user_can_view = in_array( $glpi_item->fields['entities_id'], $user_entities );
if (!$glpi_item->isUser( CommonITILActor::REQUESTER, $techId )
&& !$glpi_item->isUser( CommonITILActor::OBSERVER, $techId )
&& !$glpi_item->isUser( CommonITILActor::ASSIGN, $techId ) ) {
//&& !$user_can_view ) {
Thanks.
Alogez.
Tomolimo,
I am trying to practice, thanks to your tutorial (url) .
I have implemented a workflow through processmaker interface.
In GLPI interface, an user opens a ticket.
The workflow is started manually (in this case); process - named Tutorial 1 is in fact your Tutorial 2. By the way, "Save as" in processmaker does not work in my case (processmaker RE)
After filling the data, the assigned user is displayed.
While connecting to GLPI, through this user, nothing appears.
The processs has been set to be used with this specified profile (eg. self service). Process Server has been set to be available through this profile (Profile setting properties).
Have I mismatched anything?
Alogez.