we are using Jira cloud in my company. In the create issue tab, i would like to add a condition over two fields making them dependent on each other with defined rules : for instance i have field1 and field2, i want something like this : field1 = SomeCountry -> field2 = [options Based on that country]
In a previous question, Cascading fields were proposed, but in our case we're using Timesheets reports and one of our admins can't have those type of fields in those reports.
Is there a way i can code something (a plugin, add-on, extension or such) to make these conditions over my fields? We'd like to avoid any paid solution for the moment (but if there's a tool for it please propose it)
Hi, unfortunately there is not a way to implement dynamic options like this in Jira.
The best I can think of is have a plugin that supports validators written using Jira Expressions.
This would allow you to construct a validator that if: field1 = SomeCountry, then only certain options in field2 are valid, otherwise it will throw an error. You would want to describe the restrictions in the Field Description, as well as the error message.
It's incredibly bad UI (violates the principle of least surprise), but it's what we've got. :-/
Let us know if you want to give one of those a try (Cloud Workflows is the most reasonable if this is the only feature you're looking for) and we can help construct an expression. It's tricky stuff, but also kind of fun.
Hi @DADSI Haitam, in theory yes, there is a way to do this yourself. You would create a Connect app which can contain a workflow validator. Here's some relevant links:
And I think that somebody else may be trying to do something similar, in this question:
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events