• Confluence is currently running with all non-system plugins disabled, some functionality may be missing
Child pages
  • Using generate next number IFTTT rule

Versions Compared

Key

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

This tutorial demonstrates how to setup and use Configuring ConfiForms IFTTT actions#Generatenextnumberactions and rules#Generatenextnumber IFTTT rule


We start with a very simple form, as usual - 2 fields.

...

Each choice from a type field will have own sequence number


Image Added

With setting for IFTTT rule as follows


Image Added


ConfiForms Form Definition
formNamemyform
confluence-administratorsINLINE


typeSelect typefalse[1=Type A|2=Type B|3=Type C|]selecttrue

seqNoSequencenumberhidden


Generate next numberonCreatedseqNotype:[entry.type]




Storage format for the form:

Code Block
<ac:structured-macro ac:macro-id="227792ed-d6fa-4b9a-a0bb-eb97d8363683" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">myform1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="ee261502-1e4f-4822-abb0-9a13809a7898" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="08d1819a-f784-40df-ab87-7841549440f3" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">type</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Select type</ac:parameter>
        <ac:parameter ac:name="values">false[1=Type A|2=Type B|3=Type C|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
        <ac:parameter ac:name="required">true</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="6047480b-4c44-493e-ab4a-917a8397662a" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">seqNo</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Sequence</ac:parameter>
        <ac:parameter ac:name="type">numberhidden</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <br/>
    </p>
    <ac:structured-macro ac:macro-id="2d5d2699-7eec-4297-a418-65d65855f1b4" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Generate next number</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">seqNo</ac:parameter>
      <ac:parameter ac:name="extras2">type:[entry.type]</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <br/>
    </p>
    <p>
      <br/>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

...