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

Issue with screen schemes after bulk deleting issue type screen schemes with no projects

 ran the bulk delete issue type screen schemes provided at https://community.atlassian.com/t5/Adaptavist-questions/How-to-bulk-delete-screen-schemes-or-issue-type-schemes/qaq-p/712428 on a test instance.

This appeared to work fine / same as if I manually deleted. 

However, then when I ran the bulk delete screen schemes script from this same page, it failed to delete any screen scheme that had been connected to the bulk deleted issue screen scheme.
Also, in the UI, while there was no relationship displayed to the old issue type screen scheme names, a bullet appeared with no text. Also, the "delete" link did not appear in the UI.

I then used a modified version of the delete script to audit the relationship between the issue type screen schemes and screen schemes and based on this, it appears that one issue type screen scheme is still connected to all of these screen schemes even though none is visible in UI.

Any thoughts/suggestions? Anyone else have this issue?

Thank you!
Donna J.

1 answer

This is old but I just encountered the same problem and am working on a solution with Atlassian.  In my case, there were records in the IssueTypeScreenSchemeEntity table that were pointing to deleted IssueTypeScreenSchemes.  This is the table that links Issue Type Screen Schemes to Screen Schemes.  I wrote the following SQL that exactly predicted which items on the Screen Schemes page will have empty bullet points:

-- IssueTypeScreenScheme to ScreenScheme relations
-- where the referenced issue type screen scheme does not exists
SELECT sse.id entityid, sse.scheme issuetypescreenschemeid,
sse.fieldscreenscheme screenschemeid, fss.name screenschemename
FROM IssueTypeScreenSchemeEntity sse
LEFT JOIN IssueTypeScreenScheme ss
ON sse.scheme = ss.id
LEFT JOIN fieldscreenscheme fss
ON sse.fieldscreenscheme = fss.id
WHERE ss.id IS NULL
ORDER by fss.name

I'm waiting to find out if it's safe to manually delete these records with something like:

DELETE FROM IssueTypeScreenSchemeEntity sse
WHERE NOT EXISTS (
SELECT id FROM IssueTypeScreenScheme
WHERE id = sse.scheme)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

94 views 0 5
Read article

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