Hi,
Our confiform submissions are currently set up in a way that they generate a jira ticket and confluence page for each submission. There is a lot of additional information generated on the generated confluence page and we need to have a link on the Jira ticket to this new confluence page.
Is it possible to automatically generated the link to the generated confluence page on the Jira ticket when the form is first submitted?
Hi
Yes, absolutely. This demo on ConfiForms wiki shows the concept
It also provides a complete storage format for you to import and see how it is done
The core part is an IFTTT that creates these remote links
<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=[entry._page.id]",
"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>
The demo utilises "WebService Request" IFTTT action but could be easily switched to "Applink Service" IFTTT to use your application links integration with Jira
So basically it "posts" this JSON
{
"object": {
"url":"https://wiki.vertuna.com/pages/viewpage.action?pageId=[entry._page.id]",
"title":"[entry._page.title.escapeJSON]"
}
}
to /rest/api/latest/issue/[entry.jk.asJSON.key]/remotelink to create a link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.