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

Accepted Answer
2 votes

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>"
1 vote

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,017 views 2 7
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