• Confluence is currently running with all non-system plugins disabled, some functionality may be missing

Versions Compared

Key

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

Yes, you can create

...

Jira issue with WebService IFTTT action (usual IFTTT to create

...

Jira issues will not work for anonymous users as it

...

uses

...

Atlassian Application link to connect to your

...

Jira and that will not be available for anonymous users, while web service connection is available to anyone, unless you tell otherwise (setting up connection restrictions))


Here is the demo (creates the issue and stores the JIRA Jira key back)


ConfiForms Form Definition
formNameji
showOnlyOwnRecordstrue
registrationFormTitleCreate JIRA issue with ConfiForms Webservice connection
CreateRegister metrueINLINE


summarySummarytext

desc1Descriptiontext

desc2More details:textarea

width:100px;jkJira keyread_only

id:[empty]jkHide field

WebService Request4bb4c41a51f289a07507d50a1b841a4donCreated/rest/api/2/issue/X-Atlassian-Token: no-check;Content-Type: application/json;Content-Type:charset=UTF-8myjiraPOST



trueCreate ConfiForms EntryonCreatedentryId=[entry.id]&jk=${iftttResult_myjira}


trueCreate ConfiForms EntryonCreatedentryId=[entry.id]&jk=[entry.jk.asJSON.key]


ConfiForms TableView
formNameji

jk

created


Storage format

Code Block
<ac:structured-macro ac:macro-id="634f4a34-b8ba-464d-b222-e123d65cc4e0" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">jitest</ac:parameter>
  <ac:parameter ac:name="showOnlyOwnRecords">true</ac:parameter>
  <ac:parameter ac:name="registrationFormTitle">Create Jira issue with ConfiForms Webservice connection</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="dd25632e-211e-4820-8754-836d4ade9236" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="overrideSaveButtonLabel">Create</ac:parameter>
      <ac:parameter ac:name="registrationButtonLabel">Register me</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="8a572845-1d28-4560-a4d8-f8102317e419" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">summary</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Summary</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="2e5a8660-272b-43f6-801d-a3131c3665c5" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">desc1</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Description</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="7d641f3b-1fd7-4e47-a63e-a2b040782730" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">desc2</ac:parameter>
        <ac:parameter ac:name="fieldLabel">More details:</ac:parameter>
        <ac:parameter ac:name="type">textarea</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="7c8f347e-7704-441f-92f2-990cac31a7d5" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="css">width:100px;</ac:parameter>
        <ac:parameter ac:name="fieldName">jk</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Jira key</ac:parameter>
        <ac:parameter ac:name="type">read_only</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="a06f0ccf-0e36-4d07-b47d-cb38a345c0fe" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">id:[empty]</ac:parameter>
        <ac:parameter ac:name="fieldName">jk</ac:parameter>
        <ac:parameter ac:name="action">Hide field</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="0cc4d8ec-9be2-4e16-b398-9427586d81a9" 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/2/issue/</ac:parameter>
      <ac:parameter ac:name="extras2">X-Atlassian-Token: no-check;Content-Type: application/json;Content-Type:charset=UTF-8</ac:parameter>
      <ac:parameter ac:name="resultName">myjira</ac:parameter>
      <ac:parameter ac:name="who">POST</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:macro-id="46d25e82-d4db-4e38-9b96-f5c6159c473f" ac:name="noformat" ac:schema-version="1">
          <ac:plain-text-body><![CDATA[{
    "fields": {
       "project":
       { 
          "key": "JTEST"
       },
       "summary": "[entry.summary.escapeJSON]",
       "assignee":{"name":"admin"},
       "description": "[entry.desc1.escapeJSON] \n [entry.desc2.escapeJSON]",
       "issuetype": {
          "name": "Bug"
       }
   }
}]]></ac:plain-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <br/>
    </p>
    <p>
      <br/>
    </p>
    <ac:structured-macro ac:macro-id="a9eeb29b-9cf1-4e02-bd92-e9065673a95d" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="extras4">true</ac:parameter>
      <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;jk=${iftttResult_myjira}</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="434fb056-7c11-43cd-a049-8e92847a9e43" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="extras4">true</ac:parameter>
      <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;jk=[entry.jk.asJSON.key]</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="d309c641-56ef-46cb-b01f-19590d41605e" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">ji</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="9a9109ce-a69b-4cea-8e88-a5404d899bc3" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">jk</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="18b7e9fe-30c3-4a04-886e-6a47446af441" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">created</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>