Hi Community,
we use the mentioned post function JMWE: Copy field value from linked issues and we want that only in case of connection with Period Issue Type, and if that ticket has in the name "backlog" that the accound value of the field will be copied to the newly created ticket.
Is this possible even because i don't have this option here?
Best regards
Jurica
Hi @Jurica Petricevic ,
there are two ways to do this:
- using the "Issues returned by the following Groovy Script" option of "Source Issue(s)"
- using conditional execution together with a regular issue link type as the "Source Issue(s)" option
For the first approach, you can do something like:
issue.getLinkedIssues("blocks").findAll{ it.get("issuetype").name == "Period" && it.get("summary") ==~ /(?i).*\bbacklog\b.*/}
Of course, you'll need to adjust the issue link direction (here "blocks") or just use issue.getLinkedIssues() to return all linked issues, whatever the link type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.