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?
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.
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.
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:
def indexManager = ComponentAccessor.getComponent(IssueIndexingService.class)
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()
def indexManager = ComponentAccessor.getComponent(IssueIndexingService)
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