- edited description
Read field from issues returned by JQL query Function error
Comments (16)
-
reporter -
repo owner Hi Andrey,
Which is the typical value you are storing in Ephemeral string 3 (%{00063})?
-
reporter One out of item 3 choices.
-
repo owner I mean the value you have in field "Ephemeral string 3" before executing the post-function, i.e., the value that will be replaced at the right of logical connective AND in your dynamic JQL query.
The problem is that at configuration time the plugin doesn't know the value at "Ephemeral string 3", and JQL parser expects a logical term at the right of AND.
Can you please tell me the typical value of "Ephemeral string 3" before executing the JQL query?
-
reporter Yea, I understand this. Ephemeral string 3 can have one of these 6 values, but there is no one typical value.
-
repo owner Ok, Andrey. Now I see.
It's not easy to solve this problem, and your usage is not very typical, however really elegant and amazing.
A simple workaround is to remove the logical connective and from your JQL, and include it at the beginning of your 6 possible values.
-
reporter Could you please provide an example?
Let's take es3: labels is empty or (labels not in (QA,Review) and labels not in (SB,PR)) and JQL: issueFunction in subtasksOf('issuekey in (%{00041})') and (%{00063}) ORDER BY KEY
How can it look like to avoid syntax errors?
Thank you in advance, AK.
-
repo owner Sorry, Andrey, my previous post is not a valid solution. Please, give me some time to think of a solution.
-
reporter No problems, take your time )
-
reporter Fidel, the method of filtering subtasks you suggested works well, so this request is not holding me back, thank you!
-
repo owner - changed status to wontfix
Hi Andrey, I don't consider this issue worth to be fixed, since it's a very unusual usage, and it's not possible to predict which kind of content will have a field in configuration time.
Please, let me close the issue, since you have actually resolved your problem.
-
reporter Sure thing, I did not expect you create a run-time parser, Fidel. I think a warning message would be enough in case the input string doesn't follow JQL rules. Also, there are might be custom search functions and you can't check them all, I guess.
-
Fidel,
could you please remind me how to disable syntax checking of JQL requests? I can't find this info the documentation.
-
repo owner -
repo owner - changed status to resolved
-
repo owner Duplicates Issue
#282 - Log in to comment