Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set Affect/s Version on linked issue

Casey Hinkle
January 12, 2021

Hello, I am running into issues with attempting to set the Affect/s Version system field on a linked issue with a value from a custom field that is a version field. The issue I am having is that this piece of code gives me an error of Cannot find matching method:

destinationIssue.setAffectedVersion(productVersion)

I have even tried performing the same action on the FixVersions field for a test and the same error in my code. Is there something I am missing here?

Using JIRA DataCenter 8.5

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Najjar _Innovura_
Atlassian Partner
July 28, 2020

Most events are documented by Atlassian in their Jira Class API

VersionUpdatedEvent:

https://docs.atlassian.com/software/jira/docs/api/7.2.0-OD-05-030/com/atlassian/jira/event/project/VersionUpdatedEvent.html

Vivian Escalante
Contributor
July 28, 2020

Yep, but my question asks for documentation which states the actions that trigger the events, specifically Version Updated. The others seem obvious what triggers it, but for example, does updating either the name, description, start/release dates all fall under Version Update? How about the isArchived and isReleased attributes? Are those triggered with Version Update or Version Released/Unreleased and Version Archived/Unarchived OR Both? Haha. 

Thanks for responding though!

Najjar _Innovura_
Atlassian Partner
July 28, 2020

Well the best way to know is to try, 

I ran a quick test on Jira 8.10 and the event VersionUpdatedEvent is triggered when:

  • Name updated
  • Start date updated
  • Release date updated
  • Description updated
  • isArchived updated
  • isReleased updated

It only doesnt trigger when new version is created

TAGS
AUG Leaders

Atlassian Community Events