Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Is it possible to update a numeric field if an issue is linked to another isse.

I am looking for a way to tally the number of links for a particular issue, issue "A". As a step to resolve the problem, I want to update a field in "A" if automation identifies that an issue is linked to it.

I'm able to get automation to recognize the existence of a linked issue using the "For Linked issues" option.  By my reading of the documentation, the following edit should update issue A:

{
"Update": {
"{{triggerIssue.fields.testNumericField3}}": 1
}
}

However, I get an error:

"No fields or field values to edit for issues (could be due to some field values not existing in a given project):"

I've used customField_nnnnn instead of the field name, but that does not work either.

 

 

 

 

 

 

 

1 answer

@Mark Hanson 

Hello, Thanks for writing to us.

Maybe you can use "Edit Issue" action where simply you can select field("testNumericField3") from dropdown and set its value to like this:

{{issue.issuelinks.size}}

instead using json(which is wrong in your case, details on using update here), which should count total linked issues of all types and set in your custom field.

Or if this does not resolves the concern please share details on how you are planning your rule and your use case. Maybe I will be able to assist better. 

 

Cheers
Sherry

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

372 views 2 15
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