Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: Possible to use the current Space Key value as a variable in form filters?

Deleted user December 6, 2018

I have a master form (including Registration Control and Table View) located in a separate space where various pieces of data are stored.  On this form is a "SpaceKey" field which I am using for sorting.  I'm then creating Spaces whose Space Key matches the value of this field.

In one of those spaces, I'm creating a page with only the Registration Control form, and Table view, referencing the master form in the other space.  I'd like to set a filter on this form to only show values whose "SpaceKey" field, matches the current Space Key.

I can enter this manually, however I'm trying to template the idea in order to reduce the amount of manual updates required when creating a new space.

Are there any variables that ConfiForms has available (Examples: @self or @spaceKey) which can be used in a filter, which references whatever the current Space Key value is?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
December 6, 2018

You can use the context variable for current page [entry._page] and access it's space key

[entry._page.spaceKey]

As "_page" is a rich object of type Page then you can access any property the page has, including, of course, the space key  

More on properties and context variables in ConfiForms

Deleted user December 6, 2018

Super!  Thanks, as always, for your help Alex.

Deleted user December 6, 2018

As a quick follow up, is it possible to have Confiforms create a new Space?  I've checked through the IFTTT options, as well as a few other places, including Google, but nothing jumped out at me as the obvious answer.

Alex Medved _ConfiForms_
Community Champion
December 7, 2018

Yes, you can create Confluence spaces with ConfiForms

There is no dedicated IFTTT action, but you can easily setup an web-request type IFTTT action and use https://docs.atlassian.com/ConfluenceServer/rest/6.13.0/#api/space-createSpace API to create a space in Confluence with ConfiForms

Like Deleted user likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events