Forums

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

based on value selected in field the resolution should be Resolved or Discarded

Vijay March 8, 2022

based on value selected in field the resolution should be Resolved or Discarded

for example I have one custom field, on selecting particular values the resolution should be resolved or discarded 

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2022

Best way to do this would be a simple post-function on the "close issue" transition that looks at your custom field, and sets the resolution accordingly, without asking the humans.

Vijay March 9, 2022

Hi Nic,

Thanks for response, but the thing is I have field in that field I have to choose one value or different value  base on my selection the resolution should change 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2022

I don't understand what you mean by that.

You have a field, you want to set a resolution depending on what is in that field, so a post-function can look at the custom field and set a resolution depending on what it finds there.

Vijay March 14, 2022

Hi Nic,

I mean, we have custom field called Root causes Analysis in this field we have some values  I want to select any one value in this field on the selection of value the resolution should be changed to resolved or Discarded 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2022

I'm still not understanding this.  What is wrong with setting the resolution in a post-function?

Vijay March 15, 2022

can you suggest me how to put a post function with help of script

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2022

Which scripting app do you have?

Vijay March 15, 2022

Adaptavist ScriptRunner for JIRA

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2022

Ok, you'll need a short and simple script that does :

Read custom field value

If value = X, set resolution to Y, else set it to Z

There's a load of scripts you can read from at https://library.adaptavist.com/search?page=1&platforms=server&term=field

Suggest an answer

Log in or Sign up to answer