Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Not able to get status of linked issue

I'm using the below script in Scriptrunner and it's working just fine for most issues (using OutwardLinks).  However, when the issue is linked FROM the status I want, it returns null.  For example, issue A is blocked by issue B, and the "Linked Status" field shows the status of issue B as expected.  But when issue B blocks issue A, the "Linked Status" field in issue A shows null.

Conversely, I can go to issue B, and the "Linked Status" field shows the status of issue A just fine.  I've tried "InwardLinks", but that only shows the "Linked Status" field in issue A as it's own status. Any assistance would be appreciated. Thanks!

 

Issue A = DCMM-5838

2018-10-26 16_26_35-Script Fields.png

Issue B = ITGOV-36

2018-10-26 16_15_10-Script Fields.png

1 answer

Hi,

Aaaarch. Links again...

You must know that issue links are implemented and accessible from the API in a (very) strange way.

A issue link (in the Jira Setup) has an Outward part and an Inward part defined.

When using a link, Jira creates a bi-directional link.

But !!! from the API, the getOutwardLinks() method only returns the links that have an outward part that corresponds with the link in the issue (not sure you still follow, it took me also time to understand...).

So in practice, to find all links of an issue, you should get all links from getOutwardLinks() AND from getInwardLinks()

Only if you know on beforehand what links you are looking for (for example only the "is blocked by" links), you know what method to use (in the same example, as "is blocked by" is the Inward description, you know you will find this link in the getInwardLinks() method).

Weird, but once you understand... (and unless you forget in some months... :-))

Thanks for the reply.  Would you be able to provide some direction in reference to the script?

 

-Doug

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

109 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you