The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
  • Community
  • Q&A
  • Jira
  • Questions
  • We have a situation where in we have to asssign an issuore to reporter as well as Defect Manager. How can we do this using Validator

We have a situation where in we have to asssign an issuore to reporter as well as Defect Manager. How can we do this using Validator

Jayashree Shetty
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 Champions.
August 21, 2013

We have a workflow in which if we have any bugs/defects created then this needs to be assigned to both reporter and the defect manager. There is validator for assigning to reporter and also assign to role member. if we add both these validators how will they work ? will the issue assigned to both or is it one among the two assignees.

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
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 Champions.
August 21, 2013
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 Champions.
August 21, 2013

First of all, a validator is absolutely the wrong place to do this. A validator is for checking input is correct, not setting data. You should be doing this in a post-function or a listener.

Secondly, you can't. Jira's assignee field holds a single value. Reporter OR defect manager. Whichever "set assignee" call you are doing second will overwrite the first.

I suspect that you might want to have a defect manager assigned constantly though - "this is the person responsible for handling it overall", with the assignee used for "this is the person currently dealing with the details".

I'd recommend having the defect manager as a second "user picker" field - that way it can remain static through the life of the issue, and the assignee can be changed to reporter, developer and so-on, as required.

A slightly improved version of this would be to directly use the defect manager in the workflow sometimes (e.g. "escalate to defect manager" - uses a plugin to update the current assignee to the defect manager, and the condition "only the defect manager can close the issue")

0 votes
Jayashree Shetty
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 Champions.
August 21, 2013

Thanks Nic. It was by mistake that i wrote validator instead of post function