Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,323,853
Community Members
 
Community Events
168
Community Groups

How to check the version in FixVersions using a Sil script

Jira 8.16.1 - Data Center

PowerScripts 4.8.0.17

I am trying to check the value of fix versions and throw an error if the version contains an

an .x (so like 5.x, 6.x).  Do you have an example of how I can accomplish this using a sil script?

1 answer

0 votes
alexsbs I'm New Here Jul 05, 2022

I use like validator in workflow with transition screen.

if(!hasInput("fixVersions") && contains("Task|Bug|Improvement|Sub-task|Lead Task", type)) {
string errorMsg = "👆 fixVersion!!!";
return false, "fixVersions", errorMsg;
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.16.1
TAGS

Atlassian Community Events