Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,945
Community Members
 
Community Events
176
Community Groups

Script to change the due date color if the due date is passed.which can be usable in script fields

it should  be usable in script fields provided by script runner

1 answer

0 votes

What is your question? 

Hi Christoph,

I am looking for groovy script, which can be used to change color of due date field on the view issue screen for the condition mentioned below .

3 days before due date- yellow highlighter

Due date or later- red highlighter

would be using this groovy script code in scripted fields provided by script runner

Hi Christoph,

I'm also interested in a groovy script like this for scriptrunner.

Many thanks and best regards
Benny

Hi Benny,

have you checked the Adaptavist Script Library?

There are quite some examples in it.

Unfortunately it is hard for me to post some code example here so I will try posting it in a google doc like this - does it work for you? Link to google doc

Best regards

Christoph

Hi Christoph,

thank you very much for your suggestion!

As far as I can tell, the date inputs for Duration need to be of type LocalDateTime.

I've tried to define a custom scripted field but this seems to be incorrect as we do not want to define a new field but rather overwrite the style of an existing one.

Could you please elaborate on how to connect the style adjustments with the issue detail view shown on the RHS when selecting an issue in active sprint view?

Which is the ScriptRunner category I have to choose an element from?

Many thanks in advance.

Best regards
Benny

Hi Benny,

thank you very much for your reply and you're welcome!

I would say Scriptrunner Fragments should be the thing to look into for this: Fragments documentation 

With web panels you can add custom java script to pages so that you could manipulate the style of an existing field: documentation

Hope this helps?

Best regards

Christoph

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events