Oh, I see now.
Yes, it is possible using JQL like this (this is the SIL code that when used in a condition will do just what you want):
string [] linkedIssues = selectIssues("issue in linkedIssues(\" " + key + " \") "); if(size(linkedIssues) == 0){ return false; } return true;
Additionally, we have a specialized routine in our roadmap that will do: getLinkedIssues(parent, issueLinkType)
Thanks.. I will try this out shortly and let you know if I have any issues/questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Florin
I've tried this and it always returns false. What might I be doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My bad! I accidentally added an empty space before and after the key which resulted in the JQL being "issue in linkedIssues("<space><KEY><space>")".
The correct form is
selectIssues("issue in linkedIssues(\"" + key + "\") ");
.. note the removed spaces
Sorry about that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jim,
It's not really clear to me what you are trying to accomplish here. You want to see if a condition in the workflow is fulfilled (which would mean that there is a specific transition available as a button on the issue) ? Where would you like to do this check? In a post-function? Listener? Service? Gadget? Please give us more details about the problem you are trying to solve.
Regards,
Florin Manaila.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Florin
In a pre-condition (or validation) I want to NOT allow users to see/use the transition button if there is ZERO linked issues. I cannot use subtasks because this pre-condiation may be applied to subtasks as well. Hopefully that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.