which type plugin should i select if i want to make some pre-check before normal creation of an issue?

which type plugin should i select if i want to make some pre-check before normal creation of an issue?

1 answer

0 vote

Until you've started to create an issue, there is nothing you can check.

So the answer here is "none, because it's a logical impossibility". You can use validators on the "create" transition to validate that a user is entering valid data, but, of course, that's done as they enter the issue,

thanks for your comments, i want to check whether the user have already create an issue in some project, which i limit only one per user, any ideas?

I can think of a couple of ways of approaching this scenario actually.

One is to have a specific role of "creator" in the project, with "create issue permission" set and with your user in it. Then you write a listener that picks up "create", checks to see if they've gone over whatever limit you want to set on them and removes them from the role. This is the prettiest way to do it because it'll simply dump their "create" rights, they won't be able to create any issues in that project.

The other approach is the validator I already mentioned. Let them create an issue, but have a bit of code that searches for their other issues and if it finds them, returns "false" with a message to tell them they're over their create limit.

I suspect you can do either of these with the script runner plugin (Certainly the validator can be done!)

thanks for your ideas, actually i have do that with groovy in script runner, but it based each workflow, what i wanted is do the check across the workflows, that's not bound with only certain workflow.

Workflows are independent of each other. You'll need to add this to each one as appropriate.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,334 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot