Post Function Workflow - set the latest fix verion

David Plesu March 6, 2024

Hello,

I hope you are doing well!

I would like to know if is there a possibility to set the earlier version that was created in project, when the issue is created. 

I have scriptrunner, and JSU Automation suite plugins. Maybe it will help.

Thanks,

David.

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2024

Hi David,

We have the example here for ScriptRunner for Jira Cloud of how to set a fix version inside a post function, and this should help to achieve your requirement.

Regards,

Kristian

David Plesu March 7, 2024

Hello,

I hope you are doing well!

Thank you or the answer.

I would like somehow to manipulate the values, and take the latest one!

Latest one - the latest version created in the project!

Thanks,

David.

Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2024

Hi David,

The Jira API does not give a version created date but if you call the Get Project Versions endpoint, each version has a start date on it.

Using this you could get the version with the most recent start date and get this to set as the version on an issue.

I hope this helps.

Regards,

Kristian

David Plesu March 12, 2024

Hi,

Thanks for suggestion

Regards,

David

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events