Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using project functionalities (like security) in my plugin without creating any project

Hi everyone!

I want to use some of Jira’s functionality (like security (permissions…), issue workflows, reports, …) in my plugin, without creating a project for it.
How can I use these functionalities outside a project? Can I use issue workflows at global level? Can I define a permission scheme with custom permissions and use it without assigning it to a project (so that Jira handles security automatically)?

Can I create a singleton project so I would be sure that there's only one instance of it?

Thanks!

 

1 answer

0 votes

Mostly, you do not, as it does not make a lot of sense. 

A workflow is a process that an issue in a project follows, by definition, it's for an issue (and an issue can only exist in a project, there are no global issues).  Issue security and project permissions define who can and cannot see or perform actions in a project.

You can define schemes and their artefacts that are not used by any projects, but there's no use for them, as their functions are all about project and issue usage.

Reports do not have projects, although some of them do take a project as a simple parameter (most of them take the more flexible option of JQL, and the simple parameter really leads to "project = X" as the underlying JQL).  A plugin providing a report does not refer to any project directly, it usually asks, or runs in the context of the current project.

Thank you for your response,

So should I implement them myself? I understand what you are saying that Jira is working with projects... . But I was hoping that there is maybe a way to use these functionalities outside a project. For example can I make a custom issue object and then define a workflow for it without any project? Or can I have roles outside a project?

Do you know how other plugins implement their security? (Like Upraise. They have custom permissions that you can assign to role-actors. I don't think they've used a project and I can't see any of permissions in global permissions. Do you think they implement it themselves?).


Thank you for your time.

Probably not.  You could, but it would be pointless.

Think of it this way - you could "implement" project permissions.  Then not apply them to a project.  Which would do precisely nothing.

There's more of the same here:

> can I make a custom issue object and then define a workflow for it

Yes (without any code)

>without any project?

No, issues, by definition, are in a project

>Or can I have roles outside a project?

Project roles, no.  "Roles" in the general sense of what the word role means, of course you can.

 

I think we should take a step back.  Forget "reuse things that are designed for things we're not actually interested in".

Could you explain what you are trying to achieve?  Without referring to anything Jira and its apps do. 

Just give us the human-friendly description like "I'm trying to make a cup of tea" without worrying about which of the five types of tea it is, the brand of the kettle, the size of the pot or how you check the water is the right temperature, etc.

Like smhf97 likes this

Thank you for your response! @Nic Brough _Adaptavist_ 

One of my use cases is that I want users to fill a vacation request form. Then this request goes to his manager (I know who is his manager, don't worry about this part). And manager can see his team's requests and accept or reject them and so on (So I wanted to create a workflow to manage the state of this vacation request). Also I want to prevent non managers to have access to requests and manage them (So this was the reason for roles and permissions)


Can I reuse these functionalities (Workflow, Security, ...) for my plugin without being dependent on a project?
 

Thanks again for your time!

No, the schemes and components you're looking at are all project dependent, they make no sense outside a project.

If you're doing holiday requests, why aren't you just using an issue for it?  That way, you get to use all the stuff you're asking about automatically.  And you don't have to write an entire issue-tracking sub-system for it!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you