The creator of the issue can only close the issue. JIRA

Kyle Erwin May 28, 2013

Hello,

In JIRA, I was wondering if there is a way for the user that creates an issue can be the only one to close it. Right now, I have only the reporter can close an issue condition set for the close transition.

Any help would be appreciated.

Thanks,

-Kyle

6 answers

1 accepted

3 votes
Answer accepted
Natalie Hobson
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.
May 29, 2013

Hi Kyle,

I see what you mean. You are saying that you want the *original* reporter to be the only one able to close it, regardless of who the *current* reporter is, yes? Sounds like what you want to do is create a user custom field, call it "Original Reporter", copy the value of Reporter to that field in a post function from the Create step in your worklfow, and then associate that custom user field in a permission based condition on your close step. :)

1 vote
Kapil Bolli
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.
May 28, 2013

Hi Kyle,

You can also use Close Permission : as Reporter in Permission Scheme.

Then in workflow condition , use Close Permission for close transition

-Kapil

0 votes
Bhushan Nagaraj
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.
May 30, 2013

Hi Kyle,

@natalie-hobson is right.

Kapil, "Only Reporter" condition will not work here. I can be the logged in user and set the reporter as Kapil. What Kyle wants is, only Bhushan should be able to close the issue because I am the one who is actually creating the issue although I am setting the reporter to Kapil.

Natalie Hobson's method will work. You will need a custom field that you set the value to the logged in user and then have a condition to allow closing the issue to only the person captured in the custom field.

Cheers

Bhushan

0 votes
Natalie Hobson
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.
May 30, 2013

You're welcome! I've converted my comment to an answer. :)

0 votes
Kapil Bolli
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.
May 28, 2013

Hi Kyle,

That's Possible in two ways :

1) You are using only Reporter Condition

2) Using Close Persmission , as Reporter.

In any of these methods you can achieve it.

-Kapil

0 votes
Kyle Erwin May 28, 2013

Thank you for the response Kapil!

I currently have that set as one of my conditions. However, we have multiple people creating issues (users, developers, and admins) and assigning a reporter and assignee other than themselves. Even though they are not the reporter or the assignee, I would like whoever created the issue be the only one to close it. Is this possible?

Thanks Kapil,

-Kyle

Kyle Erwin May 30, 2013

Natalie,

Yes, that was exactly what I was looking for. Thanks for the help!

-Kyle

Marc Carlo Angelo P. la O' January 19, 2017

Hi, Kyle 

Just like to ask were you able to do what Natalie mentioned? I tried to copy it by doing the following below

1) Created a workflow

2) Created a new custom field called it "original reporter"

3) On the new workflow that was created, updated the post function of the create transition

4) selected the post function "copy value from other field". The source field is the "reporter" and the destination field is the "original reporter field"

5) Update the condition of the "close issue" transition created and added the condition "user is in customer field" , and selected the user must be "in field" and field is the "original reporter"

Here is the sample workflow created 

image2017-1-20 16:56:37.png

This did not work, hope you can enlighten me or me on who to make this work.

 

Thanks,

 

Marlo

Natalie Hobson
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.
January 20, 2017

Hi Marlo,

Now that Atlassian has provided a "Creator" value (which is the person who originally created the issue, no matter who the current Reporter is set to), this can be done more easily using the Condition or Validator "based on regular expression" from the JIRA Workflow Toolbox plugin (one of my faves).  Simply select either the Condition or the Validator, and in the "Field or parsed text to be checked for matching with regular expression" select "Current User" from the dropdown, and then in the "Regular expression" box select "Creator" in the "Field code injector:" dropdown.

Marc Carlo Angelo P. la O' January 22, 2017

Hi Natalie,

Thanks for replying, I check the JIRA Workflow Toolbox plugin you mentioned above.The plugin is not for free, I have to get approval to buy the item. Is there any other way to work around this using only the post functions or the conditions of the JIRA workflow diagram?

 

Thanks,

 

Marlo

Natalie Hobson
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.
January 25, 2017

Hey Marlo,

Can you narrow down where the workflow is failing?  For example, does it successfully copy the value of Creator to your custom field on create transition?  Or is the workflow failing later on?

Note that you want to make sure the post function you add to the create transition is below the "creates issue originally" post function, otherwise there's no value for Creator to be copied.  smile

Marc Carlo Angelo P. la O' February 2, 2017

Hi, Natalie

Apologies for the late reply. Was able to make it already work. Thanks for those hints, I was actually doubting if the value of to initial reporter was actually being copied to the custom field. Then, you mentioned that I have to make sure "the post function you add to the create transition is below the "creates issue originally" post function" and it made sense. Missed that little detail, and was able make it work afterwards. smile

 

Cudos to you! Many thanks!

 

 

Thanks,

 

Marlo

Natalie Hobson
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.
February 3, 2017

That's awesome!  I'm so glad I could help.  laugh

Suggest an answer

Log in or Sign up to answer