Hi,
I try to write a script runner (in post function), that assigns automatically in the sub-task by the value in the component (in the "source issue).
The value of the assignee (in the sub-task) needs to return from a SQL query.
Someone can overview on the code and tell me what I did wrong?
Please advise,
Eitan.
Hi Eitan
May I ask why you are checking the source issues assigned components via the database rather than the Java api?
Also looking at your query, may I ask why you are parsing issue.setAssignee within your database connection?
I will expect that you store the data from the result of your query in an array or hash set and then iterate over this in a subsequent method that you use for setting your assignee. (In other words, issue.setassignee() should come after your connection close for the database.)
Regards.
My very grumpy answer to this is:
>Someone can overview on the code and tell me what I did wrong?
Used SQL.
It's not a friendly answer, for which I apologise, but it is accurate. Why are you using SQL when the API can serve you faster and better? And the component/s field is not even kept in AO tables?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.