Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
I have a Custom Field, ‘Change Type ‘ a drop down with values ‘Value1’, ‘Value2’ and ‘Value3’.
I use this field in two different Issue types, say ‘Type 1’ and ‘Type 2’. But I need to remove the value ‘Value2’ in Issue Type 2.
Tried adding Context, but we can’t have two contexts for a single project.
Is there any property like ‘jira.field.resolution.exclude’ for a custom field ? So that I can add this in Create Issue step.
Or any other Workaround ?
Thanks, Vishnu
You have to create two custom fields and set the context as applicable to the different issue-types (so that you can use the same transistion screen).
Thanks Renjith.
Do you mean I have to Create Two Custom Fields with same name ?
If so, I guess in filters we will have two fields. This may confuse users right ?
Also JIRA doesn't allo to create Context based on Issue Types. It's possible only based on projects.
As I mentioned, is there any properties I can use ?
FYI : I use JIRA 4.4.1 and 4.4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you set the context of the fields correctly, only the right one will appear in the issue navigator filter after selection of project and issue type. Of course in other areas, like gadgets, jql, yes there is a chance for the people to get confused.
Am not sure about any other means :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, two fields mean two filter options, and some things go wrong if you use the same name for two different fields. I add a simple . to the name of one of one of them, or use capitals to distinguish them
>Also JIRA doesn't allo to create Context based on Issue Types. It's possible only based on projects.
Er, yes it does - I've got loads of fields locked to issue type instead of projects. That's been there since v3.0 if memory serves.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic,
>Also JIRA doesn't allo to create Context based on Issue Types. It's possible only based on projects.
Are you sure ? I use JIRA 4.4.1. and 4.4. I couldn't create Context for this field based on issue types.
I added one cotext for 'Change Request' and added all projects to this context.
Then added one more context for 'Tasks' but I was unable to choose projects. The Projects drop down was empty as I have already added all projects to the first Context.
Did I miss anything ?
Regards, Vishnu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
You can hide Value2 by jquery or javascript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you have a script for this please provide me and help me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishnu,
Agrred that this is a challenge, Instead choosing a project in context, have global context for the field just associate it to the issue type. You can have as many contexts like these.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.