Hi,
For your requirement, you should use ScriptRunner's JQL Function, i.e. Portfolio.
You should try something like this:-
def issue = Issues.getByKey('MOCK-1')// Issue that has the Issue Picker
def issuePickerValue = issue.getCustomFieldValue('Initiative Picker').toString().replace('[','').replace(']','').trim()
Issues.search("""issueFunction in portfolioChildrenOf("type = Initiative and issuekey = ${issuePickerValue}")""")
Please note that the sample code above is not 100% exact to your environment. Hence, you will need to make the required modifications.
Below is a screenshot for your reference:-
In this example, the Issue Picker value is taken from the issue MOCK-1. The value is the Initiative selected from the Issue Picker.
Once the value from the Issue Picker is extracted, it is placed into the JQL Query.
The result return is the child of the Initiative, i.e. the Epic issue type.
As mentioned above, you will need to modify the code to suite your needs.
Thank you and Kind regards,
Ram
try this:
project = REAIT and issuelinktype ="Initiative link"
Here is a reference link: https://support.atlassian.com/jira-work-management/docs/jql-fields/#Issue-link-type
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.