Get taskValue from job as task, and then pass it to next task.

CaptainJack
New Contributor III

I have workflow like this.

1 task: job as a task. Inside this job there is task which is seting parameter x as taskValue using dbutils.jobs.taskValues.set. 

2. task dependent on previous job as a task. I would like to access this parameter x. I tried to do dynamic job parameter like {{tasks.task1.x}} and then dbutils.widgets.get(x) but this taskValue is not detected in dynamic parameters. 

Any Idea how could I pass this taskValue or make it job parameter?