You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I need help. We have a requirement to set priorities based on the issue type. We are using the JIRA Server 8.20.12 version now. I have written this below code for the Task issue type. It's working fine on the Create screen But not on the edit screen. Can u help me to find a solution for this?
import static com.atlassian.jira.issue.IssueFieldConstants.PRIORITY
def constantsManager = ComponentAccessor.getConstantsManager()
def formField = getFieldById(PRIORITY)
def availablePriorities = ["High","Low"]
if(issueContext.issueType.name == "Task")
Out of the box, you can set priority scheme at the project level in the Server env. However, the scheme is for the entire project and cannot be based on issue types used within a project.
To set priority at issue type + only in the EDIT screen, you will need to use third party paid add-on to accomplish the ask - Example Scriptrunner for Jira and utilize their Behavior component setup -
NOTE - I hope you have already migrated to Data Center env and not staying with the Server env, it is because the Server env support will end at Feb, 2024.
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team