Hello,
I want to list all issues that have linked issues with a specific link type, such as Blocks, cloned, etc.. I used this ScriptRunner query:
issueFunction in hasLinks("blocks")
but it didn't work for some reason. Getting "Function 'hasLinks' does not exist" error message.
Could anyone please assist? I'd greatly appreciate it.
Hi @Gregory Kremer ,
Have you tried the 'issueLink' function?
issueLink
, issueLink["link type"]
, or issueLinkType
, where link type
or LinkType
is a variable you replace with the issue link type (blocks, duplicates, or is blocked by, for example).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the linkedIssues() function to search for issues that are linked to an issue with a particular type of link. The syntax for this is linkedIssues(issueKey,CaseSensitiveLinkType). For example, you can use the query issue in linkedIssues(ABC-123,"is duplicated by") to find issues that are linked to a particular issue via a particular type of link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Riley Venable Thank you for your reply. Just to clarify, I am not interested in linked issues for a specific issue. My goal is to find a total number of issues with a specific Linked Issue value. For example, how many issues with Linked Issue "Blocks" I have? How would this query look like? Thank you.
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.