Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create issues for few projects

Abhi Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2018

Greetings to All,

 

I am using one script to disable the create pop-up window

 

<script type="text/javascript">
AJS.$("#create_link").removeClass("create-issue");
</script>


Although the new imported projects are unable to create issues,
and when I remove the above query it works.

Can someone please let me know what could be the reason for this.

Thanks,
Abhi S

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2018

This script is modifying the page as the user loads it.   By design this script appears to be hiding the create option.

Where are you defining this script in Jira?  Is this placed in the announcement banner on the site?  If so that explains why this would appear on all pages in Jira.

If you want to restrict this to a specific project or set of projects, then I would actually recommend that you create a new custom field.  After the field is created, you can then go and edit this field (Gear icon -> Issues -> Custom fields).  From here you can configure this field to not be a Global custom field, but instead have specific contexts for the projects where you want this to exist on.  Once this is complete, you can then post a script like this into the description of this custom field itself.  Since this field is only appearing for issues set in the field configuration, issues in other projects won't have this script be run when loading the issue details view of these.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events