Link new cloned issue with the original issue using JIRA Portfolio's "Parent Link" field.

I am using Jira server 7.3.1, ScriptRunner and Jira Portfolio v2.2.2 to auto create issues and I am using the 'clones and issues and links' script.  What I am trying to do is the following:

1. link the new cloned issue with the original issue using JIRA Portfolio's "Parent Link" field (which is different to the "Issue Link Type / Direction" option)

2. check if an issue with a certain summary already exists, and if it already exists I want the script to do nothing and if not I want the script to create an issue with a specific summary and epic name.

 

Appreciate any help that anybody can provide.

 

Cheers

 

1 answer

0 vote
Tarun Sapra Community Champion Aug 28, 2017

For 1st part, currently there is no straightforward way to access "parent link" field (like epic link) in the script of the script runner plugin.

https://jira.atlassian.com/browse/JPOSERVER-1663

Please go throught the comments in the above link for some work-around.

For the 2nd part. It's pretty easy, in the post-function condition you just need to check is issue.summary *contains* the string which you want to test and if it contains the string then move ahead with the post-function.

Hi Tarun, unfortunately, the links you have shared do not address the specific question asked. Are there other suggestions/workarounds?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

177 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you