I want to change drop down value of custom field based on status.
If status is StatusA, then value in drop down should be A1,A2.
If status is StatusB, then value in drop down should be A1,B1,B2.
How can i achieve this?
You can use the JJupin plugin for that with its Live Fields fieature. Here's a similar example to what you're looking for:
You can use Behaviours plugin for this , You will need to write a custom groovy script which will check for the status and display options in the required customfield .
refer the below docs for examples
Script runner cannot cannot be used to change the values of a dropdown on the screen , script runner can provide a post function which will set the value to the customfield based on status
you can use Database Custom Field (https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.databasecf) and a auxiliar database table with the relationship between status and drop down field.
The database table will have the following values:
Status A - A1
Status A - A2
Status B - A1
Status B - B1
Status B - B2
So, the query will be dependant on status field :-)
Hope this helps.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG