from what I have found there seem to be various possibilities to parse jql statements in java. What I would need is the same functionality but with the rest api. Nice would be something like an associative array with the clauses, values, operators... as the keys and values in this array. Maybe somebody knows if this is possible already... otherwise I would have to implement that by mysqlf, but it seems to be a lot of work :)
In fact this is not exactly what I want to achieve. The jql search is fine, I am using it already and it works. What I need is a possibility to transform a jql search string into an object. As an example lets take this jql string:
assignee=currentUser() AND issuekey IN (ISS123, ISS234, ISS345)
from this I need to create something like
operator : "AND",
fields : [
name : "assignee",
value : "currentUser()"
name : "issuekey",
comparator : "IN",
values : [
to have detailed information on a jql query that I can use in my application. Something like that is possible with the java api, but I haven't found a way to do this through the rest api.
if you want to jql search using rest then you can try like this
check here some exmple script are there
let me know if it does't help and give me some sample what you want to try
Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...
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!
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