Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,978
Community Members
 
Community Events
168
Community Groups

How do I get the file name without the extension in ConfiForm IFTTT macro?

I am intended to rename a page using ConfiForm IFTTT with the action of "Rename Page". I wish the new page name to be the file name without the extension. Currently, I am using "[entry.file.toString().split(.).get(0)]" to get the filename. The "entry.file.toString()" statement returns the filename properly, but the ".split(.).get(0)" part is not getting rid of the file extension.

1 answer

1 accepted

0 votes
Answer accepted

Hi

I think you need to use something like

[entry.file.asAttachment.fileName.split(.).get(0)]

Alex

Hi

 

It works! Thanks a lot!

 

Yangyang Liu

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

125 views 0 9
Read article

Atlassian Community Events