Forums

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

Is there a way to create a clickable URL that includes the value of a field on the issue screen?

Phil W
Contributor
April 26, 2018

We are looking to introduce Jira (Jira Cloud) into our team to handle software development and third level support issues. In both cases we have a need to link the Jira issue to an external source.

For example, for third level support we have first and second level support handled using Salesforce Cases that are raised by the customer and managed by the support team. When we get to third level support, the Jira issue will be created by support, based on the Salesforce Case and we want to include the Case ID as part of these details. We then want to be able to generate a clickable link on the Jira issue screen that uses a defined base URL together with the value of our custom field holding the Case ID. It would have a URL incorporated into the page as a clickable link like:

<a href="https://myorgdomain.salesforce.com/{issue.fields.salesforceCaseID}">Salesforce Case</a>

I cannot find any out-of-the-box way to handle this. Have I missed something or does this truly require the creation of an externally hosted add-on?!

3 answers

1 accepted

0 votes
Answer accepted
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.
June 1, 2018

Sorry, I missed this first time around.

Jira has now way to know what you want to link to unless you tell it.  Off-the-shelf, there's a simple solution - use a "url" type field and ask your users to put it in there.  Or, better, ask them to use the "link" function (it's not just for linking to other Jira issues)

For what you've defined though, no.  Atlassian do not do calculated fields (other than resolution date) because there's just too many possible things to cover and they only want to write generic functions that cover most or all options.

So, for something more advanced, you will need an add-on.

Personally, I'd use ScriptRunner (I would say that, I work for Adaptavist, but I would have said the same before I joined, and would still say it if I left). 

  • Add a case-id field and copy it to a url field after the user enters it
  • Add a case-id field and a scripted field that gives you the url
  • Add a case-id field and use it to create a web-link
  • Validate that the user has added a web-link

And, in all cases, I'd probably incorporate validation that the other end of the link at least exists.

Phil W
Contributor
June 1, 2018

Thanks Nic.

My concern is verified - I would have to use an add-on (whether that was ScriptRunner or something else).

We use a full URL field for this because we had no choice; the addition of more cost to the licencing of Jira could not be justified. I think it is a shame they don't support even trivial "templating" of UI components. Indeed, the whole UI configurability is pretty limited IMHO. I can't chose the ordering of fields on the UI, for example. Quite disappointing.

Phil

0 votes
Jimin Kim
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!
April 28, 2020

Totally agree with this. Atlassian's inability to play well and integrate with other platforms has been quite the turn off... I can link a Jira ticket easily from a Salesforce Case, but not the other way around. :/ 

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.
May 2, 2020

That's because Salesforce doesn't provide a simple and easy API to allow Jira to connect and validate links, unlike Jira does.

Phil W
Contributor
May 2, 2020

IMHO it feels much more like a case of making you pay for anything that is over and above the most basic functionality (which of course you are already paying for).

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.
May 2, 2020

It does.  And Salesforce is already horribly expensive.  At those prices, you'd expect it to provide the basic hooks for other systems to connect and validate incoming links.

Phil W
Contributor
May 2, 2020

That is as may be, but I still can't use a simple template with field substitution to create a link or other value in Jira Ui. That is what thisthread was aabout.i don't need to validate it. Just generate it.

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.
May 3, 2020

You'll need to take that up with the vendors of the systems you are trying to generate links for.

Phil W
Contributor
May 3, 2020

Sorry mate but that is pure deflection. If I want to make a link, if the link has a specific format all I have to be able to do is specify the format and substitute in the required value. In this case I want to have the format deal with the host on which we have the customer-facing case so all we have to keep in the Jira is the ID. Why on earth do I need anything from the external system to have such capability. You talk nonsense.

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.
May 3, 2020

Yes, sorry, I misunderstood yesterday.

My answer from 2 years ago still stands for the way to construct data without going off to other systems.  The reason Atlassian don't do it is that there's no way to code for every possible thing you might want to do, so the only option is to allow you to write code directly.  But they don't want to have to support ad-hoc scripting that things like ScriptRunner and Powerscripts enable.

0 votes
Phil W
Contributor
June 1, 2018

(It's a shame that not even Altlassian folks are replying on this sort of question. You'd think they could...)

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events