How do I use the ID of a Custom Field Value in JQL?

Hi,

We have the onDemand Version of Atlassian, which is on JIRA 6.1 right now.

I have a custom Field called sharedVersion, for use across multiple projects. This is cf[10892] at an ID level.

I currently have a value for that custom Field that has an id of 11530 and a name of "4.1.X 2013.XX.XX".

I want to be able to adjust the name without having it break any filters that I create when I update the name to "4.1.1 2013.10.09"

I feel like I should be able to have JQL that says:

cf[10892] = 11530

OR

something similar.

The option '11530' for field 'cf[10892]' does not exist.

I believe that worked in JIRA 5.

I cannot find the proper way to reference the Custom Field Value by its ID. Any direction would be appreciated.

Thanks.

Chad

2 answers

1 accepted

This widget could not be displayed.

Based on your example, I was able to create a NEW Custom Field that was a Cascading Select instead of a Select with an ID of 11090. Then I created a value of id=11931.

Then when I use JQL of:

cf[11090] in cascadeOption(11931)

I can get the results I want, which is great. Thank you.

It probably makes sense for me to switch to a Cascading Select.

I am curious still to know if there is a similar feature for a single select, if anyone knows.

This widget could not be displayed.
Jeff Thomas Atlassian Team Oct 08, 2013

What about using cascadeOption (if your custom field is a cascading select)?

cf[10891] in cascadeOption(11530)

The Custom Field Type is a Select List (single choice). When I tried

cf[10892] in cascadeOption(11530)

I get a warning The field 'cf[10892]' is not supported by the function 'cascadeOption'. Thanks for the help so far.

Chad

Jeff Thomas Atlassian Team Oct 08, 2013

I'm not able to find a function that will work for a select list. Hopefully someone else will know a way to do this or it might be a feature request to submit.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 10 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

29 views 1 2
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you