Page tree
Skip to end of metadata
Go to start of metadata

Playground and DEMO space

This is a playground and demo space for ConfiForms and ConfiDoc addons developed and supported by Vertuna LLC

Most pages provide a storage format for the demo, so you can use the free add-on from Atlassian Confluence Source Editor to import this configuration into your Confluence and see it in action

Please note, all the examples here are provided without any obligation and may or may not be incomplete or may have bugs, and we provide NO SUPPORT for these examples and demos.


In this tutorial you will learn how to create Jira issue with Jira key saved back to ConfiForms form and create a page with Jira macro.

Video

Source code for the solution

<ac:structured-macro ac:macro-id="e4269d64-4a3b-4d4c-81fd-7878c4087f34" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">f</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="d2653524-c307-4e83-bfa9-83eb42abb794" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="8c8c2476-c782-42d6-9e5c-91a12d327879" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">JIRAKey</ac:parameter>
        <ac:parameter ac:name="fieldLabel">JIRAKey</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="5937f524-4a67-446d-b38f-aaaff744fbba" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">pageTitle</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Page title</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="38ffeb83-fe68-4e4b-847b-15976468b5ed" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">id:[empty]</ac:parameter>
        <ac:parameter ac:name="fieldName">JIRAKey</ac:parameter>
        <ac:parameter ac:name="action">Hide field</ac:parameter>
      </ac:structured-macro>
    </p>
    <p> </p>
    <p>--- creates issue</p>
    <ac:structured-macro ac:macro-id="4599f927-d2c0-4a3b-a20b-de65b9374e75" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Create JIRA Issue</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="resultName">myjiracreator</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:macro-id="ccb6d35a-0ea8-4792-b569-e6176ca2dbad" ac:name="noformat" ac:schema-version="1">
          <ac:plain-text-body><![CDATA[{
    "fields": {
       "project":
       { 
          "key": "JTEST"
       },
       "summary": "TEST Issue - [entry.pageTitle]",
       "issuetype": {
          "name": "Bug"
       }
   }
}]]></ac:plain-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>-- updates jirakey back to confiforms record</p>
    <ac:structured-macro ac:macro-id="8eb89451-5f83-40ed-8c5f-616384c558ba" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">entryId=[entry.id]&amp;JIRAKey=${iftttResult_myjiracreator}</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>creates a page</p>
    <ac:structured-macro ac:macro-id="fee11aaf-7a66-47f6-80cd-a7aef225037d" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Create Page</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">[entry.pageTitle]</ac:parameter>
      <ac:rich-text-body>
        <p>Confluence JIRA macro to show JIRA issue created</p>
        <p>
          <ac:structured-macro ac:macro-id="af9653df-d390-41b3-834a-886902200d5c" ac:name="jira" ac:schema-version="1">
            <ac:parameter ac:name="server">JIRA</ac:parameter>
            <ac:parameter ac:name="columns">key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution</ac:parameter>
            <ac:parameter ac:name="maximumIssues">20</ac:parameter>
            <ac:parameter ac:name="jqlQuery">key = [entry.JIRAKey] OR parent = [entry.JIRAKey]</ac:parameter>
            <ac:parameter ac:name="serverId">e448067e-a16a-3ba7-893b-87a33aec6e05</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<p>All records in my form</p>
<ac:structured-macro ac:macro-id="9f3b1337-876d-42f0-abef-11bdc68ea23c" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="messageToShowWhenEmpty">No records yet</ac:parameter>
  <ac:parameter ac:name="formName">f</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="24b6c232-b24d-4e41-88b8-a2f261b261ee" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">JIRAKey</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="63fcb683-1b1c-4468-a813-5bec550fc51c" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">pageTitle</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<p>Created pages:</p>
<p>
  <ac:structured-macro ac:macro-id="3c94ade2-8334-4c86-ab5a-7cca49d3b018" ac:name="children" ac:schema-version="2"/>
</p>