<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Jolt Spec for populating field based on value of another field in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/290438#M214875</link>
    <description>&lt;P&gt;I found out the solution. It may be helpful for someone.&lt;/P&gt;&lt;P&gt;If anyone has better spec, please let me know&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"*": {&lt;BR /&gt;"urlTypeId": {&lt;BR /&gt;"1": {&lt;BR /&gt;"@2": "domoDashboardLink"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"domoDashboardLink": {&lt;BR /&gt;"examUrl": "&amp;amp;1"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 13:26:46 GMT</pubDate>
    <dc:creator>Biswa</dc:creator>
    <dc:date>2020-02-25T13:26:46Z</dc:date>
    <item>
      <title>Jolt Spec for populating field based on value of another field</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/290059#M214645</link>
      <description>&lt;P&gt;I want to populate my target JSON with a field based on value of another field.&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;Input JSON:&lt;BR /&gt;[&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"examUrl": "&lt;A href="https://community.cloudera.com/null" target="_blank" rel="noopener"&gt;https://exam.test.com/page/1473161074&lt;/A&gt;",&lt;BR /&gt;"urlTypeName": "Spring URL"&lt;BR /&gt;},&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"examUrl": "&lt;A href="https://community.cloudera.com/null" target="_blank" rel="noopener"&gt;https://exam.test.com/page/12423222&lt;/A&gt;",&lt;BR /&gt;"urlTypeName": "Java URL"&lt;BR /&gt;},&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Output:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"ExamDashBoardURL" : "&lt;A href="https://community.cloudera.com/null" target="_blank" rel="noopener"&gt;https://exam.test.com/page/1473161074&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;In the above example, I will populate&amp;nbsp;ExamDashBoardURL only if&amp;nbsp;urlTypeName is "Spring URL".&lt;/P&gt;
&lt;P&gt;Can anyone please help me on this.&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Biswa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:42:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/290059#M214645</guid>
      <dc:creator>Biswa</dc:creator>
      <dc:date>2020-02-21T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt Spec for populating field based on value of another field</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/290438#M214875</link>
      <description>&lt;P&gt;I found out the solution. It may be helpful for someone.&lt;/P&gt;&lt;P&gt;If anyone has better spec, please let me know&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"*": {&lt;BR /&gt;"urlTypeId": {&lt;BR /&gt;"1": {&lt;BR /&gt;"@2": "domoDashboardLink"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"domoDashboardLink": {&lt;BR /&gt;"examUrl": "&amp;amp;1"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:26:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/290438#M214875</guid>
      <dc:creator>Biswa</dc:creator>
      <dc:date>2020-02-25T13:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt Spec for populating field based on value of another field</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/303759#M221696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72164"&gt;@Biswa&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please look at the below spec:&lt;/P&gt;&lt;PRE&gt;[&lt;BR /&gt; {&lt;BR /&gt;  "operation": "shift",&lt;BR /&gt;  "spec": {&lt;BR /&gt;   "*": {&lt;BR /&gt;    "urlTypeName": {&lt;BR /&gt;     "Spring URL": {&lt;BR /&gt;      "@(2,examUrl)": "ExamDashBoardURL[]"&lt;BR /&gt;     }&lt;BR /&gt;    }&lt;BR /&gt;   }&lt;BR /&gt;  }&lt;BR /&gt; }&lt;BR /&gt;]&lt;/PRE&gt;&lt;P&gt;Output will be:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"ExamDashBoardURL" : [ "https://exam.test.com/page/1473161074" ]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Tell me if this is ok.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 18:03:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-Spec-for-populating-field-based-on-value-of-another/m-p/303759#M221696</guid>
      <dc:creator>PVVK</dc:creator>
      <dc:date>2020-09-30T18:03:58Z</dc:date>
    </item>
  </channel>
</rss>

