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?
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:
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
Thanks @Daniel Eads !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rene not sure why. I tried to remove the Spam label no luck.
@Daniel Eads or @Monique vdB can you please assist?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.