Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Sign up

Sign up | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Tipp: Using Apache's mod_rewrite for simpifying 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?
May 15, 2017
5:23 am
Avatar
sckl
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

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

May 16, 2017
11:17 am
Avatar
sun kim
Member
Members
Forum Posts: 56
Member Since:
June 2, 2014
sp_UserOfflineSmall Offline

If you make this an IBM RFE (Request for Enhancement), I'd vote for it. Definitely would make things easier if it was just domain/module/idnum format: maximo.com/wotrack/12345

June 13, 2017
10:34 am
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1066
Member Since:
March 1, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin's answer!

Forum Timezone: America/New_York

Most Users Ever Online: 54

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

madd0g17: 59

sun kim: 56

Maximofresher: 42

cgregory: 40

v.barsamov: 38

matta0990: 32

Member Stats:

Guest Posters: 0

Members: 13026

Moderators: 0

Admins: 2

Forum Stats:

Groups: 1

Forums: 8

Topics: 1433

Posts: 4012

Newest Members:

David Omoniyi, Nikolay Baydachenko, john jeven, Kevin Butturff, Kevin Linn, Ahmad Jaber

Administrators: Chon: 1066, Joe Grassia: 0