Atlassian has announced significant layoffs affecting about 10% of its global staff, primarily in software research and development, as it restructures to invest in AI.