Important: Referencing fields is done by using [entry.fieldname] notation. 

 

In this tutorial you will learn how to pass a dynamic parameter to TableView which is configured inside a ListView

Here how it looks in the editor:

  1. We have 2 services configured which work with JIRA, one which allows us to use JQL and another one which expects a ISSUE KEY
  2. We have a ListView defined which  has a parameter set to look for particular issue, in our case: CONF-36424

  3. We have set up a KEY field (of the first request) to show as a header
  4. We set up a TableView to have a dynamic parameter, which value is based on the value of the "CONF-36424" issue state.
    [JQL]project=CONF AND component in ("REST API") and status = "[entry.fields.status.name]"
  5. See [entry.fields.status.name] which will be replaced dynamically on rendering by the current state value of the "CONF-36424" issue.
  6. We also set a dynamic field label in TableView
    Keys in [entry.fields.status.name] state

    This will be also be replaced with issue current state

  7. Final view when rendered:

The storage format looks like this:

<p>
  <ac:structured-macro ac:name="confidoc-list">
    <ac:parameter ac:name="values">[KEY]CONF-36424;</ac:parameter>
    <ac:parameter ac:name="serviceId">e86d8d33-1aaa-49fa-9f17-e5fe47885a14</ac:parameter>
    <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
    <ac:rich-text-body>
      <h2>
        <ac:structured-macro ac:name="confidoc-field">
          <ac:parameter ac:name="name">key</ac:parameter>
        </ac:structured-macro>
      </h2>
      <ac:structured-macro ac:name="confidoc-table">
        <ac:parameter ac:name="values">[JQL]project=CONF AND component in ("REST API") and status = "[entry.fields.status.name]";</ac:parameter>
        <ac:parameter ac:name="serviceId">e629039c-b656-4a64-96c4-094bdb97c39c</ac:parameter>
        <ac:parameter ac:name="root">issues</ac:parameter>
        <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
        <ac:rich-text-body>
          <p>
            <ac:structured-macro ac:name="confidoc-field">
              <ac:parameter ac:name="name">key</ac:parameter>
              <ac:parameter ac:name="label">Keys in [entry.fields.status.name] state</ac:parameter>
            </ac:structured-macro>
            &nbsp;
          </p>
        </ac:rich-text-body>
      </ac:structured-macro>
    </ac:rich-text-body>
  </ac:structured-macro>
  &nbsp;
</p>
<p>&nbsp;</p>