Using Apache’s mod_rewrite for simplifying Maximo URL (Direct Link to Tickets)

Have you ever sent someone information related to a Ticket and wanted to provide him a direct link to open the Ticket?  Our user sckl, added this tip to our forum and I thought I should share it here for everyone.

I’m writing this because I find it a very simple but useful solution to be able to provide very short links to other people with the possibility to open the ticket directly.

Following use-cases are possible with the provided example:

http(s)://yoururl.com/inc/123456  => opens INCIDENT with TicketID 123456
http(s)://yoururl.com/incident/123456  => opens INCIDENT with TicketID 123456
http(s)://yoururl.com/sr/123456  => opens SR with TicketID 123456
http(s)://yoururl.com/problem/123456  => opens PROBLEM with TicketID 123456
http(s)://yoururl.com/prb/123456  => opens PROBLEM with TicketID 123456
http(s)://yoururl.com/sol/123456  => opens SOLUTION 123456
http(s)://yoururl.com/solution/123456  => opens SOLUTION 123456

Prereq: Apache HTTP Server / IBM HTTP Server (part of WebSphere Application Server)

1. open HTTP config (httpd.conf – best via WebSphere Console)

2. edit HTTP config –> uncomment (remove #) following line:
LoadModule rewrite_module modules/mod_rewrite.so

3. add following lines in HTTP config

# Rewrite Engine - enables the use of a simple link for tickets
 RewriteEngine On
 RewriteLog logs/rewrite.log
 RewriteLogLevel 0
 RewriteRule /(sr|incident|problem)/([0-9]+)$ /maximo/ui/maximo.jsp?event=loadapp&value=$1&additionalevent=useqbe&additionaleventvalue=TICKETID=$2 [NC,PT]
 RewriteRule /(sol|solution)/([0-9]+)$ /maximo/ui/maximo.jsp?event=loadapp&value=solution&additionalevent=useqbe&additionaleventvalue=solution=$2 [NC,PT]
 RewriteRule /(sr|incident|problem)/([0-9]+)$ /maximo/ui/maximo.jsp?event=loadapp&value=$1&additionalevent=useqbe&additionaleventvalue=TICKETID=$2 [NC,PT]
 RewriteRule /(inc)/([0-9]+)$ /maximo/ui/maximo.jsp?event=loadapp&value=INCIDENT&additionalevent=useqbe&additionaleventvalue=TICKETID=$2 [NC,PT]
 RewriteRule /(prb)/([0-9]+)$ /maximo/ui/maximo.jsp?event=loadapp&value=PROBLEM&additionalevent=useqbe&additionaleventvalue=TICKETID=$2 [NC,PT]

4. restart HTTP Server

That’s it!

Sun kim also added that you could make the URL app based like /wotrack/123456 which is also a great idea!

The original forum post can be found here.

Did You Know...

As Maximo Experts, we have developed several add-on products for Maximo that mobilize the work force, simplifies assignments, provides ad-hoc reporting capabilities and facilitates the seamless integration of Service Requests into Maximo.

Check out our products by clicking on the following links: EZMaxMobile, EZMaxPlanner and EZMaxRequest.

Find Out More

Leave a Reply