automatically getting jira issue key of confluence page in confiform field
Asked by ebrahim rezaian:

Hello my friends  

<br />

i had used "cwx publish issue (deprecated)" post function in my create issue transaction. in template of this postfunction i have a confiform form.

![WhatsApp Image 2021-12-31 at 12.00.47.jpeg](/t5/image/serverpage/image-id/175757iACD6529632667580/image-size/large?v=v2&px=999 "WhatsApp Image 2021-12-31 at 12.00.47.jpeg")

I want a field in my form to be filled automatically by issue key of "jira link" after registering.

Thank you


Answers:
author: ebrahim rezaian
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)   
a new way just came to my mind

could you tell me a way to get "page title" of confluence automatically in a field on confiform?


author: Alex Medved _ConfiForms_
body: Hi

Not really sure what this "1 Jira link" thingy is, but probably it appears when the issue has a back link to Confluence page

There is a bit technical example on our wiki on how you can set the remote link

<https://wiki.vertuna.com/display/TEST/Create+Jira+issue+with+webservice+connection+with+files+and+remote+links+-+storage+format>

And the ConfiForms IFTTT that is responsible for that is (in Confluence storage format)

```
<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>
```

So, basically it talks about posting some additional data to your Jira issue, and

*/rest/api/latest/issue/\<ISSUE_KEY\>/remotelink* service in particular

The example uses WebService Request action type, but could also be set up using AppLink Service (IFTTT) type

Alex

comments: author: ebrahim rezaian
body: Hello alex

this "1 Jira link" is the link of jira issue. According below![WhatsApp Image 2021-12-31 at 12.34.59.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/175759i05E78AE101A98288/image-size/large?v=v2&px=999 "WhatsApp Image 2021-12-31 at 12.34.59.jpeg") according to my "create workflow post function" after creating each issue in jira, a page will be created in confluence and shown in "wiki page".

if you click on this link, below page in confluence will be appear![WhatsApp Image 2021-12-31 at 12.00.47.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/175761iA181B00C84DD68D5/image-size/large?v=v2&px=999 "WhatsApp Image 2021-12-31 at 12.00.47.jpeg")

i want issue key of jira issue (in this example: TAR-814) to be filled automatically in a field of my confiform form.


author: ebrahim rezaian
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) you can see the issue key "TAR-814" in Top left of the first photo


author: Fabian Lim
body: Adding [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)

comments: author: Alex Medved _ConfiForms_
body: Thanks [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564) for notification!


Tags: cloud

confiforms

confluence-cloud