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

Why has my question a spam tag?

Hey Community,

 

just a short question. Why is this question: https://community.atlassian.com/t5/Jira-questions/Post-function-script-results-zero-after-creating-a-subtask/qaq-p/1244363

marked as spam?

What can i change to unmark it?

3 answers

1 accepted

0 votes
Answer accepted
Daniel Eads Atlassian Team Dec 05, 2019

Hey Rene,

I've released your post from the spam quarantine. As @Payne mentioned, code blocks often throw the automatic spam filter for a loop. Much like Sheldon Cooper and sarcasm:

giphy.gif?cid=790b7611f7878cbe1d09350d754399be991e242cc16fdb8c&rid=giphy

As your activity on the Community increases, the spam filter seems less likely to accidentally get tripped up by code blocks in your questions.

Cheers,
Daniel

Fadoua Community Leader Dec 05, 2019

Thanks @Daniel Eads !

Thanks :D

0 votes
Fadoua Community Leader Dec 05, 2019

@Rene not sure why. I tried to remove the Spam label no luck.

@Daniel Eads or @Monique vdB can you please assist?

0 votes
Payne Community Leader Dec 05, 2019

Sometimes the existence of code will cause a false-positive. I have been able to remove the spam marker from issues in the past, but I don't see that option on your post.

However, I have posted a possible solution for you involving indexing. Hopefully that'll help you.

-Payne

Payne Community Leader Dec 05, 2019

Well, I thought I had posted it; apparently you cannot post an answer to a post marked as spam. My response was this:

I encountered a similar situation a while back and resolved it by forcing an index operation on the subtask after creating it, like this:

import com.atlassian.jira.issue.index.IssueIndexingService
def indexManager = ComponentAccessor.getComponent(IssueIndexingService.class)
indexManager.reIndex(subtaskCreated)
Like Fadoua likes this

Hey @Payne

 

thanks for your help. Sadly this doesn't solve my problem. Redindexing the subtask and the parent did nothing for me.

 

boolean wasIndexing = ImportUtils.isIndexIssues()
ImportUtils.setIndexIssues(true)

def indexManager = ComponentAccessor.getComponent(IssueIndexingService)
indexManager.reIndex(subTask)
indexManager.reIndex(issue)

ImportUtils.setIndexIssues(wasIndexing)

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