Can the “Default link text” in the link column be set up to dynamically generate its value from its link URL or from another column’s value?
I’d like the text displayed for my link to do either of these (same result):
• use regex or similar to truncate link’s URL down to its slug
• pull in a value from different column in the same row
I want the link text shown in the “Jira link” column to look like the “Jira ID” column next to it. Then I need only display that one column, the link column.
I tried plugging {Jira ID ↓} into the default link text field, hoping it would work like in a function column, but no.
I’m surprised that expressions like {column_name} are not exposed for use outside of the formula column. Why not?
So just to make sure I am accurately understanding what you’re looking to do, you want to be able to change the display text of a Link Column based on the value in another column?
If so, this is not yet supported and you would have to manually copy over the value you want to see, which I understand is redundant for what you’re looking for.
This is a great idea though! We’d love for you to add it here so that our other Community members can vote on it and our product team can look into developing it.
Or, another possibility for the same result with our current schema:
Refer to another column’s value to generate the displayed text for the link. Unfortunately later in the day after writing the above, I learned that columns hidden from view at the permissions level are not exposed to formulas, so I’m afraid we would likely have the same problem here…
In the above screenshot example, I would like the “Jira link” column’s display text to pull in the value from its neighbor column, Jira ID. Then I could hide the Jira ID out of redundancy, right? Buuuut if it’s anything like formulas, trying to refer to a hidden column’s value will not work (I actually submitted another topic on this quirk but it is awaiting approval)
Full disclosure, I am with the developer of Column Magic - which I am about to suggest you try.
There is a feature called “Text Builder” within the suite. There is a recipe that can use message boxes to build both the URL and the display text from other columns.
That said DO NOT trigger it when the link column changes and then write to the same link column - you will create an infinite loop and use up all of your automations in short order.
Since the link is currently the display text, you can use that as the URL pattern. Then pick the Jira ID as the Text Pattern. Then write to the Jira link.
I am assuming the Jira link and Jira ID are set when the item is created. Here is a recipe suggestion:
If its not when the item is created… you may want to find a column that changes with them you can use to trigger. (maybe Jira writes one more column like a status?)
Hope this helps get you headed in the right direction though! If you need additional help, let us know. Also as long as you can see the column with your account, it doesn’t matter if the column is hidden like formulas. Maybe you can use a second link column, and when Jira link changes - write it to the new link column. Same effect and avoids some of the troubles. Then you can hide the other two from view for everyone but yourself.
When an item on our board is manually “sent” to Jira, the Jira link and the Jira ID values sync back down from Jira and (basically) never change.
So, I set your text builder to watch for a change to the Jira ID column and then write that Jira ID column value into the displayed text for Jira link. The URL pattern merely rewrites itself with its own value (this is ideal since the pattern of our Jira links is not static – we have two Jira instances).
Thanks @CharlotteK – although Cody’s integration does accomplish this (yay!), I have nevertheless submitted it as a feature request, as per your suggestion.