Automatisation possible for lookup of "table value" based on selection of data in 2 other tables
Asked by tanja_wolff:

I have a template which contains 3 tables. The first 2 tables have 2 columns. The 1. column has tick boxes (=tasks "\[\]"), the 2nd column colours. Table 1 has colours red, yellow, white. Table 2 blue, green, black, Table 3 looks like a matrix and shows the resulting mix-colours for each colour combination eg yellow+blue=green.

When I create a new page I select in table1 and table2 a colour (tick in "\[\]"). Then I look at table3 presenting the mix-colours like a matrix, select the correct cell and type the resulting mix-colour down.

My question: Can this lookup be automated?


Answers:
author: tanja_wolff
body: Hi Andrey, thanks for your answer. I will add some screenshots beginning of next week. Looking forward to keep communicating. Kind regards tanja


author: Andrey Khaneev _StiltSoft_
body: Hi Tanja,

There is the [Table Transformer](https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Table+Transformer+macro) macro that has a [lookup tool](https://docs.stiltsoft.com/display/public/TableFilter/Default+automatic+presets#Defaultautomaticpresets-Lookuptablespreset) in the [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app.

Could you attach some screenshots that describe your workflow in more details?


author: Stephen Sifers
body: Hello Tanja and welcome to the Community!

If you're wanting to automate the lookup and calculate/combined values of tables within Confluence out of the box, I would have to say that it's not possible (out of the box). However, you do have options to extend the product. An option would be to explore creating a user macro which would allow you to accomplish this, more on user macros may be found at [Writing User Macros](https://confluence.atlassian.com/doc/writing-user-macros-4485.html).

Additionally, the marketplace may have some options available for you to use with your requirements. There are a few apps which may suit your needs which you may find within this preset search of [Atlassian Marketplace \| Tables](https://marketplace.atlassian.com/search?product=confluence&query=tables).

Another option would be to include custom Javascript within Confluence which could add the functionality you need. This option may run into issues as your upgrade/migrate your instances, but it is something that could be done. More information on this can be found at [How to use JavaScript in Confluence](https://confluence.atlassian.com/confkb/how-to-use-javascript-in-confluence-313458839.html).

While not an exact answer on how to accomplish your goal, I do hope these references prove helpful in finding a solution which meets your requirements.

Regards,  
Stephen Sifers

comments: author: tanja_wolff
body: Hi Stephen,

thanks for your answer. It is certainly helpful! I am a user and have not enough knowledge to implement the suggested solutions. Do you have an idea how I could find an experienced confluence user who I could pay to write a macro or JavaScript for me?

Kind regards,

tanja


author: Stephen Sifers
body: Hello Tanja,

If you don't have the time or resources to take on this type of project then we would suggest reviewing Atlassian partners who are well versed in the Atlassian suite. Further information on partners may be found at [Atlassian Partners.](https://www.atlassian.com/partners) When navigating to that site select "Find a partner" to locate a partner near you.

Regards,  
Stephen Sifers


Tags: atl-adm

atlassian-marketplace