Rowling revealed her abuse in a lengthy blog post in which she sought to explain her comments about transgender women, which has also sparked controversy.
The author's comments led to an uproar in Hollywood and among her fans and queer activists have denounced her comments as anti-trans.
Earlier, Rowling criticised an opinion piece that used the phrase 'people who menstruate' and posited that discussion of gender identity invalidates biological sex.
Set in an imaginary land, it is a stand-alone story about truth and the abuse of power for children from 7 to 9 years old and is unrelated to Rowling's other books.
The 54-year-old writer made the announcement on account of the 22nd anniversary of the fictional Battle of Hogwarts on May 2.
Twenty years ago, on June 26, JK Rowling introduced the world to a boy with a lightening scar on his forehead, who would go on to protect muggles and wizards from ‘You-know-who’.