Forums

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

How to show issue status on backlog

Luca Kleijweg
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!
September 27, 2022

Hi,

I'm looking to add the status of an issue in the backlog like this: 

Screenshot 2022-09-27 at 11.02.48.png

I have tried a lot of settings, but i cannot seem to get it right. This is my current view of issues on the backlog:

Screenshot 2022-09-27 at 11.04.27.png

Could someone instruct me how to do it please?

Thanks! 

1 answer

0 votes
Pedro Felgueiras
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 Champions.
February 9, 2018

Hy @Luiz Ricardo Pereira da Silva

 

You can add some javascript on the announcement banner and check if the user is login and if's not hide the banner. 

You can check some info here: https://confluence.atlassian.com/adminjiraserver073/configuring-an-announcement-banner-861253135.html

 

You can view the code to check if a user is logedin here: 

https://community.atlassian.com/t5/Jira-questions/how-to-check-currently-logged-in-user-of-JIRA-in-velocity/qaq-p/201867

 

And to hide the banner: $(".aui-header").hide()

 

This isn't totally advised because they don't guarantee that is upgrade safe. 

 

Best regards, 

Pedro Felgueiras 

Danyal Iqbal
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 Champions.
February 9, 2018

I would use javascript in the announcement banner to hide the div. e.g to hide the announcement bannner if the user is not logged in.

Announcements
<script type="text/javascript">

function currentUserName() {
    return AJS.params.loggedInUser;
}

var user=currentUserName();
if (user.lengeth==0))
AJS.$("#announcement-banner").hide();
</script>
Kim Whitehorn
June 5, 2018

I've tried that script in my announcement banner and it doesn't appear to work.

I checked the content of user and it is undefined whether a user is logged in or not.

Is some extra setting or add-on required for these variables to be initialised?

Kind regards,

Kim.

Danyal Iqbal
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 Champions.
June 11, 2018

No. Open the console and see if

AJS.params.loggedInUser

 gives you the username of the logged in user. If it does not return anything than you need to explore 

$authcontext.loggedInUser.name

Suggest an answer

Log in or Sign up to answer