Versions Compared

Key

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

...

ConfiForms Form Definition
formNamemyfrom
confluence-administratorstrueINLINE


myuserUserusertrue

sendEmailSend emailsend=trueaction_buttonMessage was sent

sendSend statushidden


--- This IFTTT send an email when this condition is met:

send:true AND hasChanged(send):true

send:true AND hasChanged(send):trueSend EmailonModifiedTest message from [entry._page.title][entry.myuser]


--- This IFTTT resets the value of "send" field to empty

truetrueCreate ConfiForms EntryonModifiedentryId=[entry.id]&send=


...

Storage format for the solution


Code Block
<ac:structured-macro ac:macro-id="78d5015f-c231-400d-83ca-fb4c2b21a483" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">myfrom1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="48f82e8b-ac15-46f1-aeab-95b2e84c4c8e" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="restrictions">confluence-administrators</ac:parameter>
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <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="65a3fc9c-0c26-40e1-a8e3-e997221bd3a8" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">myuser</ac:parameter>
        <ac:parameter ac:name="fieldLabel">User</ac:parameter>
        <ac:parameter ac:name="type">user</ac:parameter>
        <ac:parameter ac:name="required">true</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="2555b60a-f091-4431-b449-03866fe475d8" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">sendEmail</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Send email</ac:parameter>
        <ac:parameter ac:name="extras">send=true</ac:parameter>
        <ac:parameter ac:name="type">action_button</ac:parameter>
        <ac:parameter ac:name="separator">Message was sent</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="03ac525f-71a5-4f4f-bf0b-e42a957788eb" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">send</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Send status</ac:parameter>
        <ac:parameter ac:name="type">hidden</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <br/>
    </p>
    <p>--- This IFTTT send an email when this condition is met:</p>
    <p>
      <em>send:true AND hasChanged(send):true</em>
    </p>
    <ac:structured-macro ac:macro-id="85f5643e-aea2-4486-a7f6-a979b8ab538e" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="condition">send:true AND hasChanged(send):true</ac:parameter>
      <ac:parameter ac:name="action">Send Email</ac:parameter>
      <ac:parameter ac:name="event">onModified</ac:parameter>
      <ac:parameter ac:name="title">Test message from [entry._page.title]</ac:parameter>
      <ac:parameter ac:name="who">[entry.myuser]</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>--- This IFTTT resets the value of "send" field to empty</p>
    <ac:structured-macro ac:macro-id="2bf215ca-8c96-4a29-98fd-1c76f10fa7d4" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="extras3">true</ac:parameter>
      <ac:parameter ac:name="extras4">true</ac:parameter>
      <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter>
      <ac:parameter ac:name="event">onModified</ac:parameter>
      <ac:parameter ac:name="title">entryId=[entry.id]&send=</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<p>
  <br/>
</p>
<p>View over the data</p>
<ac:structured-macro ac:macro-id="fa031f81-b860-4d65-82e6-ee544048d6d3" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">myform1</ac:parameter>
  <ac:rich-text-body>
    <p>
      <br/>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>