How to set Validation or post function - If Resolution is Duplicate, check for duplicate issue is linked to this

Raju Adluru
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.
August 25, 2013

Hi

I need some help in creating this validation below.

While doing transition from Fixed to Resolved, i want to check if user is selecting resolution as duplicate, there should be a duplicate issue linked to this issue, otherwise user should get error message, how to add this in validation or post function?

When user clicks on Fixed, he will get screen with resolution and comments fields.

Thanks for your help.

Raj

4 answers

1 accepted

1 vote
Answer accepted
Higashi
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.
September 30, 2013

You can add Validator. First check If the resolution is set, and add another validator that compare string. Functionality provided by plugin WorkflowToolbox . Validator: Field %{00028} equals "Duplicate".

1 vote
RambanamP
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.
August 25, 2013

we had the same requirement, we did the following things

1. created custom field with name "Duplicate CR" and added to resolved screen, using JavaScript made visible if the resolution value selected as Duplicate else we made it hide

2. developed a validator to make Duplicate CR field Mandatory when Resolution selcted as Duplicate and validated Duplicated CR field Value to make sure ented value is a issue key's

3. using post function issue which are ented on Duplicate CR field linked with current issue

another way is by using script runner plugin you can do this, some one may help on this

Raju Adluru
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.
August 25, 2013

Hi R. Prasad,

Thanks for the tips, appreciate it.

on 2nd point, you mean to say you have developed a new validator for this, is there any ready made validator available for this?

yes, other option is thro script runner, hope sombody have done with script runner, appreciate if they can share it.

Thanks

Raj

RambanamP
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.
August 25, 2013

for first one to hide/show field you can do it using bheaviour plugin check this

https://jamieechlin.atlassian.net/wiki/display/JBHV/Miscellaneous+Behaviours+Examples#MiscellaneousBehavioursExamples-Showorhidefields

for second, i don't think it is availble but you can do it, it is simple

check here sample are there for script runner

https://jamieechlin.atlassian.net/wiki/display/GRV/Validators

1 vote
Chaithra N
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.
August 25, 2013
Raju Adluru
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.
August 25, 2013

Thanks Chaithra.

0 votes
Raju Adluru
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.
August 25, 2013

I am on JIRA 6.0.2.

Suggest an answer

Log in or Sign up to answer