How to print author of the job in talend

Five Stars

How to print author of the job in talend

Hi Team    

Could anyone please tell me how to print/access the author of the job  i.e user email id used for creating local and remote connections in Talend.

 

Regards,

Isra 


Accepted Solutions
Community Manager

Re: How to print author of the job in talend

After writing my quick response I thought it might be quite nice to actually try this (I've never actually done this, just knew it was possible). So I built a job that I am including here. It's messy, not pretty and built in v6.2.1. But it works. You just need to point the context variable to your project folder within your workspace. Once that is done, the rest is handled for you. Feel free to do whatever you like with it :-)

View solution in original post


All Replies
Community Manager

Re: How to print author of the job in talend

There is an unofficial (and not supported) way of doing this. You will need to analyse your talend.project file (in your workspace) to find your user ids (random alphanumeric sequences). This is essentially an XML file so you can do this in Talend if you want (but if you break the file you are screwed). Then look through the files ending in ".properties" to find corresponding ids. This way you can identify the authors of all of your jobs, metadata, everything.  It's not difficult, you just have to be careful you don't break anything.

Employee

Re: How to print author of the job in talend

Each job can have a different author.  You can see who the author is by switching to the code tab on the job and looking at the comments at the top.  It has the author there.  

 

If you want to find them, you can select all your jobs, click buid and choose to export Sources only.  Once all the source code is generated, you can easily do a text search for @author comment

Community Manager

Re: How to print author of the job in talend

After writing my quick response I thought it might be quite nice to actually try this (I've never actually done this, just knew it was possible). So I built a job that I am including here. It's messy, not pretty and built in v6.2.1. But it works. You just need to point the context variable to your project folder within your workspace. Once that is done, the rest is handled for you. Feel free to do whatever you like with it :-)

View solution in original post

Five Stars

Re: How to print author of the job in talend

Thanks all for your valuable knowledge sharing and for helping me to solve this problem

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog