Copy entry owner to another form with ConfiForms
Asked by Erik Buchholz:

I'm trying to copy an entry from one form to another. This is working so far but I'm struggling to copy the entry owner.

In <https://community.atlassian.com/t5/Marketplace-Apps-Integrations/It-is-possible-to-move-string-from-one-form-to-another-with/qaq-p/923580> [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) wrote that it should be possible with ownedBy=\[entry.ownedBy\] just as other fields.

In the following example this isn't working using Confluence 7.4.0 and ConfiForms 2.12.1.

What am I doing wrong?

```
<p class="auto-cursor-target">For testing and demonstrating of copying ownedBy.</p>
<ac:structured-macro ac:macro-id="bb0e9e97-d756-4905-ab1a-41758bb9497b" ac:name="confiform" ac:schema-version="1">
? <ac:parameter ac:name="formName">f1</ac:parameter>
? <ac:rich-text-body>
??? <p class="auto-cursor-target">
????? <ac:structured-macro ac:macro-id="a79ff458-8fe8-4241-ad7f-6aeb1b166dba" ac:name="confiform-field-definition" ac:schema-version="1">
??????? <ac:parameter ac:name="fieldName">f</ac:parameter>
??????? <ac:parameter ac:name="fieldLabel">f</ac:parameter>
??????? <ac:parameter ac:name="type">text</ac:parameter>
????? </ac:structured-macro>
??? </p>
??? <ac:structured-macro ac:macro-id="34aab16c-c1bb-4c3f-86fe-1633452945b6" ac:name="confiform-ifttt" ac:schema-version="1">
????? <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter>
????? <ac:parameter ac:name="event">onCreated</ac:parameter>
????? <ac:parameter ac:name="title">f=[entry.f]&amp;ownedBy=[entry.ownedBy]</ac:parameter>
????? <ac:parameter ac:name="resultName">copy</ac:parameter>
????? <ac:parameter ac:name="who">f2:this</ac:parameter>
????? <ac:rich-text-body>
??????? <br/>
????? </ac:rich-text-body>
??? </ac:structured-macro>
??? <p class="auto-cursor-target">
????? <br/>
??? </p>
??? <ac:structured-macro ac:macro-id="688b71ac-989f-4dbf-8632-d204a2f09717" 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 class="auto-cursor-target">
????? <br/>
??? </p>
? </ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target">
? <br/>
</p>
<ac:structured-macro ac:macro-id="fce494ba-32b5-4d4a-99a6-04927a801adb" ac:name="confiform" ac:schema-version="1">
? <ac:parameter ac:name="formName">f2</ac:parameter>
? <ac:rich-text-body>
??? <p>
????? <ac:structured-macro ac:macro-id="28993452-d2c2-4c43-bf3f-c9056b1d1f4b" ac:name="confiform-field-definition" ac:schema-version="1">
??????? <ac:parameter ac:name="fieldName">f</ac:parameter>
??????? <ac:parameter ac:name="fieldLabel">f</ac:parameter>
??????? <ac:parameter ac:name="type">text</ac:parameter>
????? </ac:structured-macro>
??? </p>
??? <ac:structured-macro ac:macro-id="0d144202-e981-4a2f-9b93-11c74cb092f4" 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 class="auto-cursor-target">
????? <br/>
??? </p>
? </ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target">
? <br/>
</p>
<ac:structured-macro ac:macro-id="243169c2-35b2-457f-b1bb-d494b9a6b075" ac:name="confiform-table" ac:schema-version="1">
? <ac:parameter ac:name="formName">f2</ac:parameter>
? <ac:rich-text-body>
??? <p>
????? <ac:structured-macro ac:macro-id="17e270c9-e8a0-4f69-8d91-f58d40ebe8cf" ac:name="confiform-field" ac:schema-version="1">
??????? <ac:parameter ac:name="fieldName">f</ac:parameter>
????? </ac:structured-macro>
??? </p>
??? <p>
????? <ac:structured-macro ac:macro-id="2ed621df-a77c-43b2-a3d5-df6015a95e22" ac:name="confiform-field" ac:schema-version="1">
??????? <ac:parameter ac:name="fieldName">ownedBy</ac:parameter>
??????? <ac:parameter ac:name="withLabel">true</ac:parameter>
????? </ac:structured-macro>
??? </p>
? </ac:rich-text-body>
</ac:structured-macro>
<p class="enh-settings hidden" style="display: none;">{}</p>
```


Answers:
author: Alex Medved _ConfiForms_
body: I think you need to help ConfiForms a bit here and do the following transformation for the ownedBy field

```
ownedBy=[entry.ownedBy.asList]
```

comments: author: Erik Buchholz
body: Hi Alex,

thanks for your help. Unfortunately this isn't working. I'm still the owner of the copied entry.

What input format does the ownedBy field expect?

Regards,

Erik


author: Erik Buchholz
body: Hi [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) ,

I found, that we can copy whole entrys including ownedBy by leave the field 'Parameters to set on the entry' empty.

Additional I like to make the entry editable by additional users from field 'responsibles'. Is it possible to add the users to ownedBy or is there another way to achieve that?

Regards,  
Erik


author: Alex Medved _ConfiForms_
body: We have confirmed this to be an issue with new records you create via ConfiForms IFTTT macro. Transfer of record ownership was not followed and being ignored.

This has been fixed in the 2.15.2

Thank you for your feedback and sorry for the inconvenience

Alex


author: Erik Buchholz
body: Hi Alex,

thanks for your support. Can you tell, when this version will be released for data center?

Best Regards,  
Erik


author: Alex Medved _ConfiForms_
body: Cannot give you exact ETA, but we have this fixed and will release it soon - <https://wiki.vertuna.com/display/CONFIFORMS/Release+Notes#ReleaseNotes-Version2.15.2(dev)>

Usually we have a 2-week release cadence., so max in 2 weeks but most certainly earlier


Tags: confiforms

confluence-server

data-center

server