Forums

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

Scriptrunner: How can I restrict SELECT list values on Transition Screen & Particular Status

Sami Ahmed Shaik
Contributor
August 13, 2021

Hello there,

I am seeking a script for the following scenarios:

Custom Fields:

Sub Status (Single Select)

Sub Status values:

  • SS1
  • SS2
  • SS3
  • SS4

 

Scenario:

Workflow transition (Assigned --> In Progress) & Status "IN PROGRESS"

During this transition, sub status should display only the values "SS1" & SS2", after the successful transition, status of the issue changes to "IN PROGRESS"

During the "IN Progress" status, whenever I click "Sub Status" drop down on view issue screen, I should see only "SS1 & SS2", even on the EDIT Screen as well.

 

Workflow transition (In Progress --> In Development) & Status is "Under Development"

During this transition, sub status should display only the values "SS3" & SS4", after the successful transition, status of the issue changes to "UNDER DEVELOPMENT"

During the "UNDER DEVELOPMENT" status, whenever I click "Sub Status" drop down on view issue screen, I should see only "SS1 & SS2", even on the EDIT Screen as well.

 

Please help me to achieve this scenario using SCRIPTRUNNER.

 

Regards,

Sami Ahmed Shaik.

 

2 answers

1 accepted

2 votes
Answer accepted
Sami Ahmed Shaik
Contributor
August 16, 2021

Found the answer using getAction().

0 votes
Mohamed Adel
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.
August 14, 2021

Hi @Sami Ahmed Shaik 

 

it is possible to achieve that scenario with : 

- 2 RestEnd point to feed your list with the values accordingly  

- Behavior to display the value based on you desired transition 

here is an example 

 

I hope this might help 

 

Thanks

Mohamed Adel 

Suggest an answer

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

Atlassian Community Events