Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Copy entry owner to another form with ConfiForms

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

 

1 answer

1 accepted

I think you need to help ConfiForms a bit here and do the following transformation for the ownedBy field

ownedBy=[entry.ownedBy.asList]

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

Hi @Alex Medved _ConfiForms_ ,

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

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

Hi Alex,

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

Best Regards,
Erik

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

Like Erik Buchholz likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

187 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you