Forums

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

yuml.me macro

Joshua Rogers
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2020

Before I go and reinvent the wheel, has any one created a macro for yuml.me diagrams?

 

I found these, but they are quite old (2009!) 

 

Just looking at it, I'd love to do a couple extra things with what they outlined here:

  • allow multiline body, but replace newline characters with a comma in the GET url.
  • Instead of making a macro for each of the three diagram types, include some sort of 'option' that allows the user to specify the diagram type, and use a single macro.
  • Add a similar 'option' to optionally specify the drawing style.

 

Has anyone already done this, and willing to share?

 

-Josh

 

2 answers

0 votes
David Willson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 14, 2020

The closest thing I can think of is something like - mermaid diagrams - I found this plugin, looks recent, havn't used it myself, not sure how hard it would be to convert - https://marketplace.atlassian.com/apps/1214124/mermaid-plugin-for-confluence?hosting=server&tab=overview

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2020

So, I'm afraid I don't have much of any direct use here, but I did want to say that what you're asking for should be achievable if you are happy to delve into some coding, and I think you'll find it is not as complex as you might imagine.

That's based on some old experience (8 years ago) where I was asked to knock up something to enable Confluence to draw a picture of something based on a format like a UML file (this was far more obscure than UML though).  I landed on what I think you have - a macro that can render an attachment as a picture for the user, with some formatting options fed in.

For UML, my instinct is always to reach for the PlantUML app for Confluence, but I do not know if that works with yUML.  If it does not, then my next instinct is to go to the first link you've mentioned there and see if there is a way to do the same thing in later versions.

I'm sorry that this is not really anywhere near a solution.  I just wanted to point out that you've got a good question that deserves an answer, and although I can't get you a direct "fix", there's a bit more to have a look at.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events