We have a use case very we need to inherit certain custom field values from the
link type is implemented by
We use the smart value {{issue.issuelinks.inwardIssue.CUSTOM_FIELD}}
which provide the values for all inward links but I need to extract only the values for
link type is implemented by
How can this be done ?
Here is the current automation rule:
Yepp I am from Switzerland - Since this community is more english oriented I stick to english :-)
The trigger and link extraction direction is all clear and works well with a single link.
The issue is when we have multiple links on the same issue, then {{issue.issuelinks.inwardIssue.CUSTOM_FIELD}} is returning the values for all links and there is no way to know which value comes from which link type
in the described scenario where we have 2 link types (blocks/Implements) we receive
Country custom field value: SK-Slovakia,CH-Switzerland
and we don't know which value belongs to which link type
Grüezi aus der Schweiz
Peter
Hi @Peter Reiser ,
I was just always try to know the whole specification and details on a functional level to then find a solution on the technical side (the same as I do in software development).
Therefore I´m not quite sure my thoughts fit the requirement but I´ll give it a shot:
As you mentioned your trigger works: did you also think of the trigger "Issue linked"?
Might that be a feasable way? What do you think?
I´m going to create an example.
Looking forward to your answer.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Stefan Salzl thanks for your effort and example
It looks like its is currently not possible to retrieve the values for a particular link type when multiple links exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser ,
if the link you provided here is the same you are looking for then I got you completly wrong.
My understanding was:
As I got it right here please see my screenshot with the "Issue updated" trigger. I tested it on my site with having different link types in one epic and only those with the "implement" link have been updated.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before change:
After changing Field "Stage" in EPIC (and automation rule):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser ,
Could you take a look at my latest suggestion/documentation? Your feedback would be highly appreciated.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan -
Many thanks for your detailed suggestion.
Your solution definitely would work well except we hit
a.) this restriction: Right now there isn't a way to filter down the smart value:
b) this bug: {{issue.issuelinks.first.inwardIssue.CUSTOM_FIELD}} is NOT working and does not return any value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Peter Reiser
Please see if this helps: https://codebarrel.atlassian.net/browse/AUT-1241
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser and @Stefan Salzl,
Right now there isn't a way to filter down the smart value:
{{issue.issuelinks.inwardIssue.CUSTOM_FIELD}}
To just one of the issue links.
@Stefan Salzl suggested looking at the issue linked trigger. If you use this and then filter for your link type you get access to the information that you're after.
Cheers,
Simeon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted]
Right now there isn't a way to filter down the smart value:
This is unfortunate as we cannot retrieve the value for the specific link type.
Also we found a bug:
{{issue.issuelinks.first.inwardIssue.CUSTOM_FIELD}} is NOT working and does not return any value
{{issue.issuelinks.inwardIssue.CUSTOM_FIELD}} works but we cannot select the first value
Is this a know bug ?
The current workaround is to check if {{issue.issuelinks.inwardIssue.size}} = 1
and then use {{issue.issuelinks.inwardIssue.CUSTOM_FIELD} to set the value
but that only works if we have a single inward link...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser,
Can you raise a support request for this? It needs to be looked at in greater depth and possibly looking at your site data.
Cheers,
Simeon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser ,
As mentioned before I just tried to reproduce some scenarios that might fit your description/requirement:
Looking forward to your reply.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser ,
could you please give a description how the use exactly looks like (like kinda step by step what should happen to which issues, which issue/level triggers the rule)?
I would like to better understand the use case in order to provide a solution that really covers the requirement.
Thanks in advance
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have Work Breakdown structure (WBS) templates for our software project using following hierarchy:
EPIC -> New Feature - Story
EPIC - New Feature - New Feature - Story
etc.
to build the hierarchy below the Epic with use link Implements / is implements by
Now down the hierarchy we inheriting certain fields like Tempo accounts etc. to the child using automation.
Now a story in the hierarchy EPIC - New Feature - Story can have multiple linked issues with different link types.
As example we use Big Picture for planning where we automatically import the defined WBS structure. When we do dependency planning then link type blocks/blocked by is added.
but the hierarchy inheritance has to come from Implements / is implements by
So that means with {{issue.issuelinks.inwardIssue.CUSTOM_FIELD}} we get all the values for all the link types:
e.g. Country custom field value: SK-Slovakia (from link blocks), CH-Switzerland (from link is implemented by )
and we can't just pull the value for the link type is implemented by (CH-Switzerland)
So the questions is
How can we just get the value for Link is implemented by
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Reiser ,
Sorry I´m still not getting it in the Jira context. What exactly is the trigger?
like:
"When we update the epic-issue/when we do a certain update/action in the epic issue...."
and the furthermore what should then happen:
"....then all of the stories that are linked in this epic with "implements" should inherit certain values from the epic"
I just trying to figure out which action in Jira is really the trigger and in which direction values should be inherited.
Best
Stefan
BTW: Your name suggests you are from the DACH area. If you speak German and as I am from Austria we could also communicate in German ;)
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.