How to make workflow button highlight in an issue?

Ellen Chen June 7, 2013

Is there a way to hight workflow button in an issue? So it can distinguish with other buttons ?

8 answers

1 accepted

2 votes
Answer accepted
MatthewC
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 7, 2013

You can use CSS to highlight every workflow button quite easily. The CSS would be

ul#opsbar-opsbar-transitions a.toolbar-trigger {

  • background-color: red;
  • background-image: none;

}

ul#opsbar-opsbar-transitions span#opsbar-transitions_more {

  • background-color: red;
  • background-image: none;

}

and the question here dicusses how to inject it into the web page

https://answers.atlassian.com/questions/54624/customize-jira-with-my-own-css

If you want to highlight a specific workflow action, you'd have to start using jquery and testing web page content to find out what project it was, what state it was in and what the workflow actions were.

MatthewC
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 20, 2013

You can enter the CSS by editing the annoucement banner and putting in the code

<style type="text/css">

ul#opsbar-opsbar-transitions a.toolbar-trigger {

  • background-color: red;
  • background-image: none;

}

ul#opsbar-opsbar-transitions span#opsbar-transitions_more {

  • background-color: red;
  • background-image: none;

}

</style>

Sorin Sbarnea (Citrix)
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.
November 14, 2013
1 vote
QC Tools and Admin May 29, 2019

Matthew Cobby's answer used to work but after upgrading we noticed that the UL tags were changed to DIVs.

 

ul#opsbar-opsbar-transitions a.toolbar-trigger was changed to div#opsbar-opsbar-transitions a.toolbar-trigger

Here is our version:

 

<style>

/* xxxxxxxxxxxxxxxxxx Transition Buttons Hack xxxxxxxxxxxxxxxxxx */
/* button color */
div#opsbar-opsbar-transitions a.toolbar-trigger
{
background-color: #0578a7;
color: white;
border-color: #CCCCCC;
background-image: none;
text-shadow: 0 0 0 #DDDDDD;
}
/* trigger button color */
div#opsbar-opsbar-transitions span#opsbar-transitions_more
{
background-color: #3366ff;
color: white;
border-color: #CCCCCC;
background-image: none;
text-shadow: 0 0 0 #DDDDDD;
}
/* hover on button */
div#opsbar-opsbar-transitions li:hover a.toolbar-trigger
{
background-color: #0099D5;
color: white;
border-color: #AAAAAA;
background-image: none;
}
</style>

0 votes
Damon Pleasant June 30, 2015

For those of you who want the change the color of the text as well (since black text doesn't show up well on darker colors):

ul#opsbar-opsbar-transitions a.toolbar-trigger {
   background-color: #0058A8;
   background-image: none;
   color: #FCFCFC;
}

ul#opsbar-opsbar-transitions span#opsbar-transitions_more {

   background-color: #0058A8;
   background-image: none;
   color: #FCFCFC;
}

MAG-II December 20, 2017

Hi Damon Pleasant - 

 

Is it possible to highlight each transition button as a different color? With the above script all of the transition buttons are the same colors for me. 

 

I apologize for my lack of coding experience. 

0 votes
Krzysztof Skoropada [Deviniti]
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.
February 26, 2015

Hi Ellen, 

If you are interested in paid plugin, take a look at this one: Conditions Validator

We have exactly what you need in 'easy in use' way.

Cheers,

0 votes
Ellen Chen June 21, 2013

Thanks, it is working now.

0 votes
Ellen Chen June 20, 2013

Where file should be modifed for CSS? Thanks

0 votes
MatthewC June 7, 2013

You can use CSS to highlight every workflow button quite easily. The CSS would be

ul#opsbar-opsbar-transitions a.toolbar-trigger {

  • background-color: red;
  • background-image: none;

}

ul#opsbar-opsbar-transitions span#opsbar-transitions_more {

  • background-color: red;
  • background-image: none;

}

and the question here dicusses how to inject it into the web page

https://answers.atlassian.com/questions/54624/customize-jira-with-my-own-css

If you want to highlight a specific workflow action, you'd have to start using jquery and testing web page content to find out what project it was, what state it was in and what the workflow actions were.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 7, 2013

Note without hacking some code really. There's nothing in the UI, and you'll need to think about how you decide which button to highlight and how to tell your css that it's different from the others

tiffany nguyen October 27, 2015

Hi Nic, Your suggestion is what I am looking for, do you have a solution and a sample code to do it? Let's say: I have 2 buttons shown up. I want to highlight only 1 of them first. After that 1st button was clicked then, highlight the 2nd buttons. Is there a way to do so? Thanks.

Suggest an answer

Log in or Sign up to answer