Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to hide a field when the ticket is on all status but will be visible on one status only?

Yousuf Al Rawahi
Contributor
June 24, 2024

How to hide a field when the ticket is on all status but will be visible on one status only?

 

I want the field to be hidden when it's on BACKLOG, SELECTED FOR DEVELOPMENT, and DONE, but will be visible when it's on IN PROGRESS.

 

Can I apply this in scriptrunner?

1 answer

0 votes
Mohammed Yousuf
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 24, 2024

Hi Yousif,

Thank you for reaching out. 

To hide a field when the ticket is in all statuses but make it visible in one specific status, you can use Jira's field configuration and workflow properties. Here's a step-by-step guide to achieving this:

Step 1: Create a Custom Field (if not already created)

1. Navigate to Custom Fields:
    1) Go to Jira Administration > Issues > Custom Fields.

2. Create Custom Field:
    1) Click "Add Custom Field" and follow the prompts to create your custom field.

Step 2: Modify the Field Configuration

1. Navigate to Field Configurations:
    1) Go to Jira Administration > Issues > Field Configurations.

2. Find the Relevant Field Configuration:
     1) Identify the field configuration scheme associated with your project.

3. Hide the Field:
     1) Click "Configure" next to the field configuration scheme.
     2) Locate your custom field and click "Hide."


Step 3: Add the Field to a Screen for the Specific Status

 1. Navigate to Screens:
    1) Go to Jira Administration > Issues > Screens.

 2. Identify the Screen Scheme:
    1) Find the screen scheme associated with your workflow transition to the specific status.

  3. Add Field to the Screen:
    1) Click "Configure" next to the appropriate screen.
    2) Add your custom field to this screen.

Step 4: Modify Workflow Properties

1. Navigate to Workflows:
    1) Go to Jira Administration > Issues > Workflows.

2. Edit Workflow:
    1) Select the workflow associated with your project and click "Edit."

Add Workflow Property:
  1) Click on the transition to the specific status.
  2) Click on "Properties" in the transition menu.
  3) Add the property jira.permission.fieldName.hidden and set it to false.


Example:

Suppose the custom field is named "Review Comments" and the specific status is "In Review".

1. Navigate to Screens:

 1) Go to Jira Administration > Issues > Screens.
 2) Find the screen used for the "In Review" transition.
 3) Add "Review Comments" to this screen.

2. Modify Workflow Properties:

1) Go to Jira Administration > Issues > Workflows.
2) Select the workflow and click "Edit."
3) Click on the "In Review" transition.
4) Click "Properties."
5) Add the property jira.permission.reviewcomments.hidden and set it to false.

Conclusion:

By following these steps, the custom field will be hidden in all statuses except for the specific status where it is needed. This ensures that users see only relevant fields based on the status of the ticket.

Yousuf Al Rawahi
Contributor
June 25, 2024 edited

I have almost done the same as yours, but it didn't work. I'm using one screen only, all statuses are using the same one screen. 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events