Create/Update Directed Graphs from Confluence Tables

Open
#5,782 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

Look at the existing CSV import functionality and the embed from URL feature to understand how diagrams are generated from external data. Examine the Confluence table structure and how to retrieve it via API. Determine where to add the new macro handling and styling logic, likely in the diagram embedding or import modules. Testing will involve simulating Confluence table data and verifying the directed graph renders correctly with the specified styling.

Written by the indexing model from the issue text.

Description

enhancement
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Similar to the Embed draw.io Diagram from a URL function + CSV Import function, we would like to be able to create and automatically update a directed graph from a Confluence table. Ideally, the table would be able to be identified and selected in the macro (by using an anchor or an extra macro, for example) to retrieve the columns and rows in csv format and one would be able to specify in the Embed draw.io Diagram macro the styling for the graph, as documented here: https://www.drawio.com/docs/manual/insert/insert-from-csv/

Describe alternatives you've considered
Our alternative solution is as follows:

  1. Create table and surround it with a Table Filter and Charts Filter macro.
  2. Insert an Embed draw.io Diagram macro that points to the URL of an existing CSV file.
  3. CRON Job that periodically does the following:
  • Downloads the table created in Step 1 as a CSV via Table Filter and Charts REST API
  • Modifies the file to include the CSV styling directions as described by your documentation
  • Uploads the file as a new version of the attachment specified in Step 2 via REST API

Additional context
This function is possible with other apps (Graphviz Diagrams for Confluence, f.e.), but we would like to avoid installing apps with overlapping functionalities.

Dominant language
JavaScript
Stars
9.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jgraph/drawio

All issues in jgraph/drawio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.