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,556,650
Community Members
 
Community Events
184
Community Groups

Scriptrunner Change Field Value depending on Status

Hi there,

I want to change the Solution field to "Done" when the workflow reaches status "Done". Should be an easy script, but I am new to Scriptrunner and not quite familiar with the scripting.

I know this could also be done in the workflow, but if the User moves a not finished issue to another issuetype with a finished status the solution do not changes. So I want to make a job that does this every night or a listener.

 

Thanks for your help. 

1 answer

0 votes
Ravi Sagar _Sparxsys_
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.
Sep 30, 2021

Hi @IT Frastanz 

You can find plenty of examples on the Script Library. Here is one sample script for updating the custom field value using a listener. You can also do this using a Scripted Postfunction but listener will work just fine as well.

You will need to add some logic in the code to incorporate your requirement related to move, where I guess you can check if the project of the issue changes or issue key changes.

Try some of the examples using the script library.

Ravi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events