I would like to add a custom field that allows me to edit the text displayed, instead of displaying the entire URL.
For example, if I wanted to link to Google, the user-facing text would be "Google" and not "www.google.com"
Is there any way to do this? I found the URL field, but it only shows the full link, and I'd like to give my users some idea of what they're clicking on.
Did anyone find a custom field that does this? We have the same requirement. We have links in our JIRA to reviews and documents in other buisness systems, and sometimes the links are VERRRRRYYYY long, making JIRA look messy. It would be really nice to be able to have the link and the link name.
I used the plug-in Script Runner to achieve this. Add a Scripted Field with Template HTML, then write something similar to this as script:
//store the key to the page/document you want to link to in a custom field called Document_ID //usually this is some document name or id. CustomField document_id = customFieldManager.getCustomFieldObjectByName('Document_ID'); //calculated and return the full href: DOCUMENT_ID = issue.getCustomFieldValue(document_id); return '<a href="https://secure.server.com/someDir/AgainDir/">' + DOCUMENT_ID + '</a>';
this will create a clickable field: DOCUMENT_ID without the full href.
there is plenty of documentation about scripted fields on Script Runners page, if this is not enough to get you started.
thank <insert divinity of choice> for Script Runner!
Directly after posting, I realized I answered the wrong question
you still need Script Runner and a Scripted Field with HTML template.
//Simply store the full href and your title in a custom field called Document_Link i.e. // <a href="https://secure.server.com/someDir/AgainDir/document">DOCUMENT_TITLE</a> // Then create a Scripted Field called Document with this code: CustomField document_link = customFieldManager.getCustomFieldObjectByName('Document_Link'); //get the full href: doc_href = issue.getCustomFieldValue(document_link); return doc_href;
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG