how to define OR relation in searchrequest?

Mehdi Yousefi July 30, 2011

hi developers

i want to have my own searchrequest xml not the one that construct via filtering, but i have little problem , i dont know how can i implement "or" between 2 custom field :

my xml search request is here:

<?xml version='1.0' encoding='UTF-8'?>
<searchrequest name='myOwnSearchRequest'>
<parameter class='com.atlassian.jira.issue.search.parameters.lucene.ProjectParameter'>
<projid andQuery='false'>
<value>10140</value>
</projid>
</parameter>
<parameter class='com.atlassian.jira.issue.search.parameters.lucene.IssueTypeParameter'>
<type andQuery='false'>
<value>4</value>
<value>3</value>
</type>
</parameter>

<parameter class='com.atlassian.jira.issue.search.parameters.lucene.UserParameter'>
<customfield_10491 name='customfield_10491' value='issue_current_user'/>
</parameter>

<parameter class='com.atlassian.jira.issue.search.parameters.lucene.UserParameter'>
<customfield_10533 name='customfield_10533' value='issue_current_user'/>
</parameter>

<sort class='com.atlassian.jira.issue.search.SearchSort'>
<searchSort field='issuekey' order='DESC'/>
</sort>
</searchrequest>

i want to implement OR query between "customfield_10491" value and 'customfield_10533" value!!

thank you in advance

S.A

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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 2, 2011

Which version of JIRA are you using? You can't have OR in versions prior to JIRA 4. In JIRA 4+, you should use JQL to write OR conditions.

Mehdi Yousefi August 3, 2011

i just wanted to know searchrequest structure, thanks any way

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events