1 2 Previous Next 27 Replies Latest reply: Jun 1, 2012 5:39 AM by Paul Tipping RSS

javascript to add button that links to issue page on another workspace?

Patrick Carney

Anyone have any ideas or have implemented such a thing?

 

Ideally, i'd want to place this button on the toolbar.

 

thanks,

 

Patrick

  • 1. javascript to add button that links to issue page on another workspace?
    Michael Woodward

    We also have a desire to add other items to the toolbar, but in your question, are you saying you want to just go to another workspace (could do via the dropdown on the right)  or you want to go to a specific workspace all the time with a button?

  • 2. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    We want to go to a specific workspace all the time with the button.

     

    For example, when end users(customers) login to Numara, they default to our IT Workspace(Service Desk). We have another, specific service that requires a different workspace/workflow. I'd like the end user to not have to go up to the right hand corner and select the dropdown to change workspaces.

     

    I'd call the button, "Adjustments"  - a payroll service we offer that is performed by a differnet team in a deifferent workspace. By clicking on this button, it would lanch the Adjustment form from that other workspace that i have built with  public perms etc.

     

    we want this to avoid the end users have to click numerous times to navigate through mulitple workspaces. I know we could use the Service Catalog for this, but we are not ready to deploy this feature yet.

     

    Thanks,

    Patrick

  • 3. javascript to add button that links to issue page on another workspace?
    Link

    One easy thing you could do is create a custom Dashboard component with the HTML links to each workspace in it and then push it out via the Agent Prefernce Templates.

  • 4. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    This is geared towards the Customer, not the Agent.

  • 5. javascript to add button that links to issue page on another workspace?
    Link

    In that case here is what you will need to do:

     

    1. Go to Workspace Administration
    2. Select User Roles
    3. Select the Customer User Role you want to have the links
    4. Scroll down to the bottom of the page to the Misc Section
    5. In the Welcome Message box create the list of workspaces you want them to be able to access and use the INSERT/EDIT LINK button on the HTML Edit Bar to add the hyperlinks:
      1. http://SERVER_NAME/MRcgi/MRentrancePage.pl?PROJECTID=X
  • 6. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    Aaron,

     

    Thanks! This is helpful and something i can use for other ideas i have, but not quite what i was asking about in this thread.

     

    Is there a way to do a similar thing to the actual Issue/Ticket Page for the particular Workspace/Project i want to link to?

     

    In otherwords, the link would actually open up the Issue/Ticket page for another workspace?

     

    thanks!

     

    -Patrick

  • 7. javascript to add button that links to issue page on another workspace?
    Link

    Yes and No, It depends on Users role in each workspaces.  If you are a Customer User in the current workspace and in the workspace you are linking to then Yes, same for Agent.  However if you are an Agent in the current workspace and a Customer in workspace you are linking to, or vice versa, then No.

     

    This "glitch" was fixed in v10.  Every time you log into FP you get a session id which is stored in the MRP variable and pre v10 your MRP would remain the same no matter your role in each workspace and you could create exactly what your looking for easily.  Starting in v10 you are given an Agent MRP or a Customer MRP depending on your role in the workspace, they add a "0" to the beginning your agent MRP to make it a Customer MRP. 

     

    I have tried to add the "0" to make it work but when you switch workspaces and roles you reauthorize to get the new MRP, but if I can ever figure it out I'll let you know.

     

    Hope that makes sense.

  • 8. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    These would be the Customer User role accross workspaces. I am on version 10.0.2. I'm unclear based on what you said with v.10 if this is doable. If it is, how so?

     

    -Patrick

  • 9. Re: javascript to add button that links to issue page on another workspace?
    Link

    If the users are Customers in all workspaces then you are good to go and here's how:

     

    Place the following code in a field header, and change the x at the end to the # of the workspace you want to link to:

     

    <input type="button" value="Create New Ticket" onclick="JavaScript:openTicket('x')" />

     

    Place this code in the Attachments field header:

     

    <script type="text/javascript">

    function openTicket(cValue){

    /MRcgi/MRTicketPage.pl?MAJOR_MODE=CREATE&LASTID=0000&USER=' + document.regform.USER.value + '&MRP=' + document.regform.MRP.value + '&PROJECTID='+ cValue +'&RUNNING_IN_POPUP=1

    window.open(myURL, 'NEW TICKET', 'width=1100,height=850,toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes');

    }

    </script>

     

    When you click the button it should open a new ticket in the other workspace.

  • 10. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    Brilliant, Aaron!

     

    I will try this and get back to you. Thanks so much. This will be helpful until we get time to plan and configure the Service Catalog portion of our project.

     

    -Patrick

  • 11. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    Aaron,

     

    I tried this and the button appears under the "Ticket Information" section and it is called obviously, "Create New Ticket".

     

    Through Firebug, i am getting an error:

     

    "openTicket is not defined"

     

    Also, is there a way to palce this button on the Toolbar insted on in the ticket page? So in essence, i'd have the "New Request/Ticket" button that is native to the workspace the user has signed in to by default and then another button that appears on the Toolbar that does exactly what you provide in the javascript?

     

    thanks,

     

    Patrick

  • 12. javascript to add button that links to issue page on another workspace?
    Link

    You will need to place the second set of code in a seperate field header, I reccomend the attachments field header, and ensure you have the ENABLED check box checked.  I did forget one thing in the code above, here is the correction:

     

    <script type="text/javascript">

     

    function openTicket(cValue){

     

    myURL = '/MRcgi/MRTicketPage.pl?MAJOR_MODE=CREATE&LASTID=0000&USER=' + document.regform.USER.value + '&MRP=' + document.regform.MRP.value + '&PROJECTID='+ cValue +'&RUNNING_IN_POPUP=1';

     

    window.open(myURL, 'NEW TICKET', 'width=1100,height=850,toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes');

     

    }

     

    </script>

  • 13. javascript to add button that links to issue page on another workspace?
    Patrick Carney

    I now do indeed get a new window that opens up but it asking for me to login again. I attempted to login and it just took me back to the initial workspace again. We use LDAP auth.

     

    Also, is there a way to palce this button on the Toolbar insted on in the ticket page? So in essence, i'd have the "New Request/Ticket" button that is native to the workspace the user has signed in to by default and then another button that appears on the Toolbar that does exactly what you provide in the javascript?

     

    Message:

       This FootPrints session is no longer active.

    Either you have logged out, or you have logged in to FootPrints from another browser, or you have been logged out by an administrator.                  

      Click here to log in again                  

    Any updates you might have been in the process of making probably did not register.  Use your browser's back button if you want to go back and recover the data you entered.  You can copy it into a text document and then paste it back after you log in.

    If you are unsure of the cause of this error, please contact your FootPrints administrator.  Some of the error details have been recorded in the system log.  Make sure to let your administrator know the time and date that the error occurred, what actions you performed prior to the error, and all details listed on this error page.

    You can email your FootPrints administrator at

  • 14. Re: javascript to add button that links to issue page on another workspace?
    Link

    I know there was a thread in the yahoogroup after v9.5 or 10 was releasedwhere a user figured out how to add options to the toolbar and I followed thetutorial successfully but it is VERY VERY involved and upgrading would breakit.  So even though it is possible and cool it's not really practice, itwould be cool to see this added as a feature in a future version if possible.

     

    Not sure about the LDAP auth, I am using Web Auth and it worksperfectly.  If you are using LDAP why not switch to Web Auth so you don'thave to worry about typing in passwords?

     

    Do me a favor post the URL of the Ticket Page for the workspace a user wouldbe in, and then also post the URL of the ticket page of the Ticket Page youwant to be able to link to.  Please do this as the same user in the samesession so I can make sure the URL in the code is set up correctly.

1 2 Previous Next