Greetings, monks!

I come to you in desperate need of some spiritual(technical) guidance. I've recently been handed the task of improving our customer support internal process by integrating our help desk (RT) with our project management tool (http://www.project-open.com/). Bear in mind that I just started getting familiarized with Perl, it's syntax, it's functionalities, and it's philosophy; I'm only a junior developer with scarce knowledge and that has only worked with ABAP language so far, regardless, my hunger for knowledge about your ways and it's good practices is big. These past few days I've been immersing myself deep into documentation and forums but, since time is a factor, I decided to turn to you for some guidance.

Now for the task at hand: the process should be simple for anyone familiar enough with Perl and consuming APIs (not my case unfortunately). Whenever a new ticket is submitted in our RT help desk, a script should automatically communicate with ProjectOpen's API (http://www.project-open.net/en/package-intranet-rest) passing some values like for example, name of our client's company, this should trigger the creation of a ticket in PO in said client's latest open project; and it should then return to RT with values such as: ID of the newly created ticket and the URL to the ticket itself so that I can use those values to update the help.desk with another script.

I think I won't need any help learning the Perl syntax in order to get any of the said necessary values, but I do need some help in understanding the process of communicating with another app's API, how to pass over the desired values, and how to properly retrieve the return values with a script. From what I learned in my research the modules RT::Client::REST, LWP::UserAgent and JSON might be of help here, but since the Perl syntax and functionalities are nowhere near to ABAP (what I usually work with) some code examples on how to use them to pass and retrieve values from APIs are probably what I need.

I submit myself to your wisdom, esteemed monks.


In reply to Perl Acolyte in need for some guidance regarding RT integration with project management app. by skepticdev

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.