Forums

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

How to make Fix Version Required only for Issue Type Story

Abdul Rahim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2023

I am looking to make Fix Version Required only for Issue Type Story.

Got some option of with Script, but all script running is Paid App.

def custfield = getFieldById("fixVersions")
String issueType = getIssueContext().getIssueType().getName()
if (issueType == "Story") {
custfield.setHidden(false);
custfield.setRequired(true);
}
Looking to have option with Workflow or Automation, to have "Fix Version required for only issue type as Story."

1 answer

1 accepted

1 vote
Answer accepted
Johan Markström
Contributor
July 14, 2023

Hi @Abdul Rahim

Welcome to the Atlassian Community! Without knowing anything soecific about your setup and needs, the simple sollution would be to create a field configuration where Fix Version is required. This field configuration could then be configured in the field configuration scheme of your project and mapped to the story issue type. 

Hope this helps! 

Abdul Rahim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2023

Thanks @Johan Markström for quick suggestion, its working for my requirement.

Like Johan Markström likes this
Johan Markström
Contributor
July 17, 2023

I'm glad it worked for you @Abdul Rahim

Like Abdul Rahim likes this

Suggest an answer

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

Atlassian Community Events