Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt Include
Creating a simple form in Confluence with ConfiForms
Creating a simple form in Confluence with ConfiForms
nopaneltrue

Let's start with the form definition. We will create a very simple form with just two fields (field definitions):

...

Warning

Please, wbe aware that if you set the IFTTT to create a JIRA issue to run in silent mode (not reporting errors), then the result might be empty... So, according to velocity syntax it is wise to access it like this  $!{iftttResult_0} 


Important

Info

Please note that, by default, the IFTTT to create JIRA issue via application link does not create remote link!

You can do it yourself, by defining another IFTTT (it can be either configured to use web connection or application link service)

See an example on how to do it with web connection (doing this using application link service is absolutely the same, just another IFTTT type to select)

Create Jira issue with webservice connection with files and remote links (Storage format for the demo: Create Jira issue with webservice connection with files and remote links - storage format)

Please have a look at the following section:

Code Block
<ac:structured-macro ac:macro-id="d4d6ee84-0f33-4713-b0c4-04baad175345" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">WebService Request</ac:parameter>
      <ac:parameter ac:name="extras">4bb4c41a51f289a07507d50a1b841a4d</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">/rest/api/latest/issue/[entry.jk.asJSON.key]/remotelink</ac:parameter>
      <ac:parameter ac:name="additionalContext">file</ac:parameter>
      <ac:parameter ac:name="extras2">X-Atlassian-Token: no-check;</ac:parameter>
      <ac:parameter ac:name="who">POST</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:macro-id="56a89f71-7d60-496a-ab45-2d6f6db4bd34" ac:name="noformat" ac:schema-version="1">
          <ac:plain-text-body><![CDATA[{
    "object": {
        "url":"https://wiki.vertuna.com/pages/viewpage.action?pageId=19104427",
        "title":"[entry._page.title.escapeJSON]"
    }
}]]></ac:plain-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>




Warning

Important note: the operation in NOT TRANSACTIONAL, this means that the ConfiForms record save operation and creation of JIRA issue is not run in the same transaction and if JIRA issue creation fails the ConfiForms record could still be created.

In general all the IFTTT integration operations are not transactional and executed in own scope, independently from ConfiForms internal operations

...