Show project field above each project issue

Hi,

Is it possible to show a global project field above each issue inside that project?

For example, when setting up a project I use the "URL" field to point to the website domain. I would like to show this above each issue (clickable direct link if possible). Also Project Lead could be useful information above each issue, for quick information access.

Instead now we add a custom field "URL" in each issue for quick access, which seems like excessive administration.

Or is this simply wrong use of the project field?

Thanks.

 

Best regards,

Dennis

2 answers

1 accepted

This widget could not be displayed.

Thanks a lot to @Nic Brough [Adaptavist]! A few fixes on that example gave me the desired result.

For future reference to others who read this, I used the Script Runner plugin, creaded a Scripted Field with the inline script like this, providing me with the project url as clickable link to new window:

def projectURL = issue.getProjectObject().getUrl();
return "<a href='" + projectURL + "' target='_blank'>" + projectURL + "</a>"
This widget could not be displayed.

It's adding stuff to a screen that a lot of people would already consider too busy, but that's a minor thing.

If you have one of the scripting add-ons (I use script runner because I've used it for years, not just because I work for Adaptavist now), then you could add a custom scripted field that could read the project url and place it on the issue view screen for every issue.

But that would only appear in the "custom field" area of the issue view, not above the issue.  To do that, you'd probably need to amend the headers of the view screen, which is a bit of a hack and generally not recommended.

Thanks for your quick answer Nic.

(wanted to reply sooner, but I ran into answer/commenting limit).

The plugin does seem to be able to do what I want, as far as I can see.
It does require custom scripting in a language unfamiliar to me, which is not easy to just step into, so it seems.

I think buying this addon would be helpful for many other things anyway, so I think I'll do that regardless of this challenge.

Any tips about the inline script to get the result I'm looking for?

Thanks, Dennis


https://answers.atlassian.com/questions/31668128/answers/31668240

If it's script-runner, then I'd create a "scripted field", with the main work of the script being something like return $issue.getProjectOnject().getUrl()

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

285 views 5 0
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you