Clarity

Expand all | Collapse all

CA PPM getting data out

David Morton

David MortonApr 04, 2016 03:14 PM

  • 1.  CA PPM getting data out

    Posted Apr 04, 2016 01:33 PM

    I have created a gel script that runs in a process. It gets timesheet data, creates a CSV file and places it on our /fs0/clarity1/share location. I also send the same file via email to myself.

    My question is... are there ANY other ways in an On Demand environment to get data out of PPM?

    Thanks! - Joanne



  • 2.  Re: CA PPM getting data out

    Posted Apr 04, 2016 03:14 PM

    Write a NSQL query ; call it over SOAP



  • 3.  Re: CA PPM getting data out

    Posted Apr 04, 2016 04:18 PM

    ...so NSQL query based portlet and export to Excel is not considered getting data out?



  • 4.  Re: CA PPM getting data out

    Posted Apr 04, 2016 04:21 PM

    Write a report, export it.



  • 5.  Re: CA PPM getting data out

    Posted Apr 05, 2016 02:16 AM

    Calling a NSQL via SOAP from a window command line as Dave pointed out:

     

    curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: ""http://www.niku.com/xog/Query/The_NSQL_QUERY""" --data @NsqlResults.xml https://cppm.ondemand.ca.com/niku/xog

     

    You might have to install curl or run the command on a linux box.

     

    V/r,

    Gene



  • 6.  Re: CA PPM getting data out

    Posted Apr 05, 2016 03:28 AM

    What about ITROI's Query bridge - that can "just" run queries (as well as XOG/XML) against a Clarity URL can't it?



  • 7.  Re: CA PPM getting data out

    Posted Apr 05, 2016 03:53 AM

    Hi Joanne ; sorry you have got a number of somewhat "flippant" answers to your question (mostly from me 'cos I was replying "out of core hours").

     

    But the right-answer really comes down to your use-case, "getting data out of Clarity" happens all the time, for example when you log into Clarity and look at a screen, the data is "out of Clarity and into your head" - slightly more developed versions of that would be "run a portlet" (like Urmas suggests), "run a report" (like one of my flippant answers).

     

    In truth my original "build a query web-service" answer (which is the simple to build NSQL query / SOAP option) would only be the "best" answer for a specific use-case (where you want to build some interface / repeatable process to get Clarity data into some other system).

     

    So if you can describe your use-case a little more you might get some more specific (and less flippant from me!) direction!

     

    Some previous discussions in this area might be (I'm sure there are many more);

    Extracting Data from Clarity

    Automating resource Clarity data to SharePoint

    Automate file downloads from Clarity PPM



  • 8.  Re: CA PPM getting data out

    Posted Apr 05, 2016 05:00 AM

    Like this one

    Data Migration Opinions?

    This is the image at the time related to the use of XOG and generating the xml files.

    Data-Migration-Opinion-Quadrant2.jpg

    Currently there are more elements in the quadrant and a third dimension could also be added:

    OOTB in CA PPM - Will and access to install and use third party tools.



  • 9.  Re: CA PPM getting data out

    Posted Apr 05, 2016 05:02 AM

    Yeah, its almost an endless discussion...

     

    To me though , "data-migration" implies getting data into Clarity (rather than out-of) - the actual use-case is all important then.



  • 10.  Re: CA PPM getting data out

    Posted Apr 05, 2016 08:29 AM

    Thank you David. I need to fetch contractor timesheet data once a week to send to our Contract management company so that the contractors can be paid. They require that a csv file be SFTP'd to them. I am making the csv via a gel script in a process and placing it in the only location I am aware of. I was just wondering if there was any other way. The NSQL/SOAP method looks promising. I will need to research and learn that.

    Thank you all for your assistance!



  • 11.  Re: CA PPM getting data out

    Posted Apr 05, 2016 08:52 AM

    So NSQL/SOAP would give you the tools to build an end-to-end thing that could do this - something running on "your environment" that uses SOAP to call a web-service (CA SaaS) and then processes the returned XML data to format a CSV file and SFTP to the target environment.

     

    or

     

    you could build a portlet that delivered your data ; run that weekly (manually), export to excel and (manually) upload to SFTP.



  • 12.  Re: CA PPM getting data out

    Posted Apr 05, 2016 12:00 PM

    Sorry, I should have thought of this sooner.

     

    How about the CA PPM Data Extraction tool? You create your native query in SQL, and CA PPM schedules the job that runs the query it an places it in the Data Extraction Dashboard. You just have to log in and pull the excel output.



  • 13.  Re: CA PPM getting data out

    Posted Apr 05, 2016 12:45 PM

    One last thing, the output goes to a specific path, so you can still have your script pick up the file and email you.

     



  • 14.  Re: CA PPM getting data out

    Posted Apr 12, 2016 02:19 PM

    I highly recommend that you get a chance to try the Data Extraction tool. It has made life so much easier in getting data out.



  • 15.  Re: CA PPM getting data out

    Posted Apr 12, 2016 02:57 PM

    Not doubting that at all.

    How much money are you talking about?

    Is there business justification for exporting contractor timesheet data weekly?



  • 16.  Re: CA PPM getting data out

    Posted Apr 12, 2016 03:28 PM

    I believe that CA included it as part of our maintenance agreement with them, so no extra cost to us. CA approached us with this as a potential solution for some of extract requirements.

     

    We have created multiple extracts with the Data Extraction Tool and some our customers rely on daily. So the benefit has been huge. We took one extract that was custom created for us that took between 30-45 minutes to run and recreated it in the data extraction tool. It went down to less than 10 minutes. Even if we had to pay for it, it would have already recovered the cost in savings by now.



  • 17.  Re: CA PPM getting data out

    Posted Apr 12, 2016 03:46 PM

    Thanks. Don't disagree at all.

    The more use cases you have the stronger the business case just thinking simplicity. Performance is a bonus.



  • 18.  Re: CA PPM getting data out

    Posted Apr 12, 2016 03:48 PM

    While it does have its warts, once you get used to it, you'll want it in all your environments.