Is there a way to get markup to display referenced issue name? #22603
-
I can easily reference other issues, even in different repos using #. But while it shows the issue name in a tooltip or in autocomplete while typing, adn the _referenced_ issue gains a link to the new issue-name, my new issue only displays the issue ID. Is there no way to have it show the issue title which is far more human-readable? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hi @jdx-john, There’s no built in way to do that on our end, but I will share this with the appropriate team as a feature request for future consideration. That said, you could try using this bookmarklet to copy issue titles & URLs in markdown format as a workaround. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Thanks on both counts :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
To follow this up, I’ve been using that bookmarklet but want to tweak it slightly and lack to web-dev skills to understand the DOM manipulation enough. The code is
So if I navigate to mislav/hub#1913 and run it I get: [ability to list reviewers with the --format flag](mislav/hub#1913) I would like it to include the issue number in the title. e.g. [193 - ability to list reviewers with the --format flag](mislav/hub#1913) I can see that the code is getting the H1 element and that does contain the number, but in a second <span> element. Equally, it is encoded in the URL but that might get messy to detect if I follow a comment link as it isn’t always the last part of the URL. For someone who knows this stuff it must be trivial, for me it could take an hour or more mucking about! |
Beta Was this translation helpful? Give feedback.
-
Hi @jdx-john, Unfortunately, the bookmarklet code seems to have changed all special characters back into their HTML code and I’m having difficulty converting that back into its proper format. You wouldn’t happen to have a Gist of that code, would you? I’d love to poke at it and see if I can help you make this modification. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I just got it from the link a couple of posts above… |
Beta Was this translation helpful? Give feedback.
-
Sorry, didn’t realized that it wasn’t modified from that. Alright, I reviewed the source code from this script. It looks like the line where we get the title is here:
I used the Google Chrome Developer Tools to try out variations of this line to see what resulted. The Depending on how you want this to be formatted, you could remove the Hope that helps! Please let me know if you have additional questions. :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
I've created a separate community discussion, please upvote it if you'd like to have a new syntax |
Beta Was this translation helpful? Give feedback.
Hi @jdx-john,
There’s no built in way to do that on our end, but I will share this with the appropriate team as a feature request for future consideration. That said, you could try using this bookmarklet to copy issue titles & URLs in markdown format as a workaround.
Cheers!