Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Is that context parameters should be same in master and child job

Hi,

 

I have created master job in which I have child jobs connected with Run if(true) condition. 

Do I need to maintain all the connections and variables to be same in master and child jobs?

 

Thanks,

Meghana.

Labels (2)
21 Replies
Anonymous
Not applicable
Author

There is a master job with 4 env in context
default, dev, qa, prod

Job Default Dev QA PROD
filePath /Desktop /files /files /files

Child1

filePath /Desktop /files /files /files
Email ABC@gmail.com some@gmail.com some@gmail.com some@gmail.com

Child2

filePath /Desktop /files /files /files
Email ABC@gmail.com other@gmail.com other@gmail.com other@gmail.com

 

master h=job looks like child1->RunIf(true)->child2.

 

Now when I execute master job in TIC, master job is taking default context variables of child job in all the environments. 

I wanted my master job to take child job's context parameters in it's respective environment. Can I get solution?

 

Thanks,

Suneel.

Anonymous
Not applicable
Author

here is a master job with 4 env in context
default, dev, qa, prod

Name   Default    Dev   QA     PROD
filePath /Desktop /files /files   /files
Child1

filePath /Desktop              /files                    /files                       /files
Email  ABC@gmail.com some@gmail.com some@gmail.com some@gmail.com
Child2

filePath   /Desktop            /files                   /files                       /files
Email ABC@gmail.com other@gmail.com other@gmail.com other@gmail.com

master h=job looks like child1->RunIf(true)->child2.

 

Now when I execute master job in TIC, master job is taking default context variables of child job in all the environments.

I wanted my master job to take child job's context parameters in it's respective environment. Can I get solution?

 

Thanks,

Suneel.

Anonymous
Not applicable
Author

There is a master job with 4 env in context
default, dev, qa, prod

Job Default Dev QA PROD
filePath /Desktop /files /files /files
Child1

filePath /Desktop /files ` /files
Email ABC@gmail.com some@gmail.com some@gmail.com some@gmail.com
Child2

filePath /Desktop /files /files /files
Email ABC@gmail.com other@gmail.com other@gmail.com other@gmail.com

master h=job looks like child1->RunIf(true)->child2.

 

Now when I execute master job in TIC, master job is taking default context variables of child job in all the environments.

I wanted my master job to take child job's context parameters in it's respective environment. Can I get solution?

 

Thanks,

Suneel.

Anonymous
Not applicable
Author

There is a master job with 4 env in context
default, dev, qa, prod

Job Default Dev QA PROD
filePath /Desktop /files /files /files
Child1

filePath /Desktop /files ` /files
Email ABC@gmail.com some@gmail.com some@gmail.com some@gmail.com
Child2

filePath /Desktop /files /files /files
Email ABC@gmail.com other@gmail.com other@gmail.com other@gmail.com


master h=job looks like child1->RunIf(true)->child2.



Now when I execute master job in TIC, master job is taking default context variables of child job in all the environments.

I wanted my master job to take child job's context parameters in it's respective environment. Can I get solution?



Thanks,

Suneel.
Anonymous
Not applicable
Author

Master and child has four environments,
Default, Dev, qa and prod.
Master is executing taking child jobs default context variables in all the environments
David_Beaty
Specialist
Specialist

Hi,

For what you’re doing, consider using a Shared Connection rather than passing the credentials down to the child job

Thanks

David
Anonymous
Not applicable
Author

I did not get ur point

Anonymous
Not applicable
Author

@Suneel: As per your explanation,  my understanding is that you want to run child's context group based on master's. i.e suppose you have selected 'QA' from master job and job want to select 'QA' parameters in child too. Please confirm?

Anonymous
Not applicable
Author

@Suneel,

 

If your requirement is based on my previous comment, then you can follow below steps to resolve your issue.

 

You need to specify child's context group value in 'tRunJob' component in Master job as below.

 

0683p000009M1O2.jpg

 

Please mark the topic as resolved if my answer helped you and Kudos are also welcome.

Regards,

Vibin CT.

Anonymous
Not applicable
Author

Yes this is my exact requirement and thanks for ur response.

 

I have seen that option of changing context. Does we have any possibility like it changes automatically depending on it's environment rather we change it manually?