Forums

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

Set a field value based on other selected value from a different field

Daniel Sharouf
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!
January 7, 2019

Hi guys, I'm trying to set up a service desk for my company using the Jira service desk system.

one of the requests is onboarding new employees.
I want to set a drop list field for a department and in another field, I will have a list of the software each employee needs to have by using multiple checkboxes. my question is, is it possible to mark the relevant checkboxes based on which department has been chosen in the department field?

Thanks in advance.

2 answers

2 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2019

Hello Daniel,

Welcome to Atlassian community.

JIRA SD does not have the correct triggers to automatically update a field value based on another, however, you can use Automation for JIRA plugin to achieve it.

You just would need to configure a simple rule like the one below. P.S: I used the fields department (Select list - single choice) and Products (Select list - Multiple choices).

Screen Shot 2019-01-08 at 16.59.21.png

Please, give this add-on a try (It has 300 free executions per month) and let me know if it works for you.

0 votes
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2019

Hi Daniel,

In Jira there is not a native option to conditionally set a field based on an input, however there are add-ons that can do the trick using post functions, so that the values are selected on submission.  I recommend checking out the marketplace to see if there are any additional apps that would work for you but three that I am aware of that can do a conditional set value post function would be:

  1. JSU - Suite Utilities for Jira, that has an "update field" post function detailed here, and can be used in combination with the tools precondition feature to set the values based on the conditional field input as the transition is executed.
  2. ScriptRunner for Jira which can configuring a customizable scripted workflow post function the details on the options for the Jira Cloud version of the app can be found HERE.
  3. Jira Misc Workflow Extensions which has a Set Field Value post function with a Conditional Execution option.

Regards,
Earl

patnesh
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!
March 9, 2021

how we can use using script runner ? any script for this ?

my question :automatically set field value based on other field values ??

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events