We have project request set up in our project.Currently whenever user raise a request to create a new project with existing key in jira,It will validate and request will be raised. Now trying to check project key which is existing but project is archived. Can you please guide to find the solution
Below is the script used to validate current project key which is not exisiting
def ProjectKey = issue.getAsString(“customfield_12605”).toLowerCase()
def newListKey = prListName.collect { it.toLowerCase() }
If (newListKey.contains(ProjectKey))
return “Project key is taken”
This script is used to validate existing project key.
How to check archived project key as well in jira
Hello, Good day. You can try the REST API method : https://docs.atlassian.com/software/jira/docs/api/REST/8.18.2/#project-getAllProjects
can you please guide us in tracking it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.