Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using custom field for JIRA URL query

Trifon Anguelov August 30, 2020

Hi. 

 

I have a custom field cf[29315] with the label "EPC ID" and trying to get the URL for querying in the browser. 

I can query from JIRA and and see the issues just fine: 

Screen Shot 1399-06-09 at 14.38.19.png

but when using the URLs below with "10567793" for the custom field as: 

- https://<base JIRA URL>/issues/?jql=%22EPC%20ID%22%20%3D10567793

or

- https://<base JIRA URL>/issues/?jql=cf%5B29315%5D%3D10567793

 

getting ERRORS: 

Screen Shot 1399-06-09 at 14.35.09.png

Does anyone have an idea what is wrong?

 

2 answers

0 votes
Trifon Anguelov August 31, 2020

Had to do extra " " around the custom field and value as: 

?jql="EPC%20ID"%20%3D%20"10567793"

instead of the URL suggested by JIRA as: 

?jql=%22EPC%20ID%22%20%3D10567793

 

Probably a bug that needs to be fixed. 

Gustavo Félix
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 31, 2020

I tried also like that and It worked for me.

Seeing your error , I think you have another version than me. I have Jira 8 , maybe is a bug in Jira 7.

0 votes
Gustavo Félix
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 30, 2020

Hi @Trifon Anguelov  I tried with a text field and a number field and in both cases it worked.

After entering the url on your browser, how does it look? On my browser the %22 is replaced for the " .

Trifon Anguelov August 30, 2020 edited

Cannot load the URL from the browser: 

Screen Shot 1399-06-09 at 17.33.17.png

 

the custom field "EPC ID" is cf[29315]

The intended query is: 

issues/?jql=cf[29315]=10567793

 

still getting the error: 

Screen Shot 1399-06-09 at 17.32.16.png

 

If I use JIRA search bar, it works but not from a browser by using the URL: issues/?jql=cf[29315]=10567793 

Screen Shot 1399-06-09 at 17.38.44.png

Gustavo Félix
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 30, 2020

It's working for me.
Im doing this:

Im entering on Jira Search Bar ->    cf[10623]=10   

Then I click on "Share" and copy the link to filter.
The link for me is = https://jira-url/issues/?jql=cf%5B10623%5D%3D10

I open it on another tab or another browser and it works .


Trifon Anguelov August 30, 2020

Adding more text from the error message in Chrome and Safari: 

 

Sorry, we had some technical problems during your last operation.

Request assistance

Copy the content below and send it to your Jira Administrator

 

Technical details

Log's referral number: d3a0e0fa-3e6d-44ed-9c15-1374a6e72f44

Cause

Referer URL: Unknown

com.atlassian.jira.util.dbc.Assertions$NullArgumentException: stringValue should not be null!

com.atlassian.jira.util.dbc.Assertions$NullArgumentException: stringValue should not be null!

at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:25) [jira-api-7.13.8.jar:?]

at com.atlassian.query.operand.SingleValueOperand.<init>(SingleValueOperand.java:20) [jira-api-7.13.8.jar:?]

at com.atlassian.query.clause.TerminalClauseImpl.<init>(TerminalClauseImpl.java:90) [jira-api-7.13.8.jar:?]

at com.atlassian.jira.issue.customfields.searchers.transformer.MultiSelectCustomFieldSearchInputTransformer.getClauseFromParams(MultiSelectCustomFieldSearchInputTransformer.java:77) [classes/:?]

at com.atlassian.jira.issue.customfields.searchers.transformer.AbstractCustomFieldSearchInputTransformer.getSearchClause(AbstractCustomFieldSearchInputTransformer.java:71) [jira-api-7.13.8.jar:?]

at com.atlassian.jira.components.query.DefaultSearcherService.generateQuery(DefaultSearcherService.java:257) [?:?]

at com.atlassian.jira.components.query.DefaultSearcherService.searchWithJql(DefaultSearcherService.java:158) [?:?]

at sun.reflect.GeneratedMethodAccessor3740.invoke(Unknown Source) [?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_222]

at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_222]

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) [?:?]

at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) [?:?]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) [?:?]

at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) [?:?]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) [?:?]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) [spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

at com.sun.proxy.$Proxy3430.searchWithJql(Unknown Source) [?:?]

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events