6 Replies Latest reply on Mar 27, 2017 3:13 AM by Ekaterina

    Hide related action

    Ekaterina Apprentice

      Hello!

       

      We need to relate request with request in some cases. So, due to system oganization we have two collections (child and parents) and two action must be allowed to relate objects with each other (for instance, "Relate parent request" and "Relate child request").

      When we're trying to hide child collection action, system doesn't give to complete parent action and print system message about that.

       

      Actually, it's not great for our customer and we have to find some solution.

       

      Maybe someone has ever had the same problem? How we can hide one of the actions without losing the required functionality? Is it possible?

       

      Thanks in advance!

       

      Best Regards,

       

      Kate

        • 1. Re: Hide related action
          Motaz ITSMMVPGroup

          I came across a similar case previoulsy and I used a pre-condition with calculation to hide the action based on a user's group membership. Below is an example about this calculation used in the Incident Management:

           

          import System 

          static def GetAttributeValue(Incident): 

                    CurrentUser = Incident.GetCurrentUserName().ToLower() 

                    User = Incident.GetObjectByAttribute("System.User", "Name", CurrentUser)

                    for Groups in User.UserGroups:

                          if Groups.Group.Title == "Service Desk":

                              return true 

                    return false 

          • 2. Re: Hide related action
            Ekaterina Apprentice

            Hello!

             

            Thank you for your response!

             

            In fact, your metho really can help to hide aсtions for specific groups. But we also already use that method and both of actions are allowed only for "Service Desk" group.

             

            So, we need to hide one of that actions excactly for members of the group "Service Desk", because our customer is a big company with more than 15000 requests per month and they do not want to be able to see action "Relate child request" in every status. They just want to have one action "Relate Parent request" in the first status and be able relate every exisist request without any other visible actions.

             

            Any idea?

             

            Best Regards,

            Kate

            • 3. Re: Hide related action
              Motaz ITSMMVPGroup

              If that's the case, why don't you take off that action from each status? This can be done by highlighting the required status in the Process Designer, Go to Properties > Optional Actions and move it away.

              • 4. Re: Hide related action
                Ekaterina Apprentice

                Because we need to use "Relate Parent requst" in the first status of the request object and be able to relate any existing requests. It's mean that we should activate the action "Relate Child request" in every request's status for users, who have access to do "Relate Parent action" action.

                 

                Best Regards,

                 

                Kate

                • 5. Re: Hide related action
                  Motaz ITSMMVPGroup

                  Hi,

                   

                  I got your point now. However, not quite sure if this is completely possible. I would say check this article: How to hide the "Add Parent ..." action when creating child records

                  • 6. Re: Hide related action
                    Ekaterina Apprentice

                    Thank you, Motaz.


                    I saw that article, but it is helpful in the case of creation new related object. It's not working with situation , when we should relate two existing objects.

                     

                     

                    Best Regards,

                    Kate