Cohort 1: Percentage of CD Participants Achieving Clinical Remission Based on the Crohn's Disease Activity Index (CDAI)Clinical remission is defined as a CDAI score of less than (\<) 150 points.Up to Week 156 (current study)
Cohort 1: Percentage of CD Participants Achieving Clinical Response Based on the CDAIClinical response is defined as greater than (\>) 100-point decrease from parent study baseline in CDAI score.Up to Week 156 (current study)
Cohort 1: Percentage of CD Participants Achieving Decrease in Endoscopic Response Based on Simple Endoscopic Score for Crohn's Disease (SES-CD)Endoscopic response is defined by decrease in SES-CD \>50 percent (%) from baseline (defined as % baseline in parent study TAK-279-CD-2001 \[NCT06233461\]) (or for participants with isolated ileal disease, SES-CD less than or equal to (=\<) 4 or at least a 2-point reduction from baseline). The SES-CD score ranges from 0 to 56 which includes 4 endoscopic variables (intestinal surface affected by ulcers, intestinal surface affected by other inflammatory lesions, presence of ulcers, and presence of narrowing).At Weeks 48, 108, and 156 (current study)
Cohort 1: Percentage of CD Participants Achieving Endoscopic Remission Based on SES-CDEndoscopic remission is defined as SES-CD score =\< 4 or =\< 2 for ileal disease, no sub-score \>1. The SES-CD score ranges from 0 to 56 which includes 4 endoscopic variables (the intestinal surface affected by ulcers, the intestinal surface affected by other inflammatory lesions, the presence of ulcers, and the presence of narrowing).At Weeks 48, 108, and 156 (current study)
Cohort 1: Percentage of CD Participants With Clinical Remission in 2-item Patient-reported Outcome Measure (PRO2)Clinical remission based on PRO2 is defined as average daily liquid or very soft stool frequency (SF) score less than or equal to (\<=) 2.8 and not worse than parent study baseline and average daily abdominal pain (AP) score \<=1 and not worse than baseline.Up to Week 156 (current study)
Cohort 1: Percentage of CD Participants With a Clinical Response in PRO2Clinical response based on PRO2 is defined as greater than or equal to (\>=) 30% decrease in average daily very soft or liquid stools and/ or \>=30% decrease in average AP from parent study baseline.Up to Week 156 (current study)
Cohort 2: Percentage of UC Participants Achieving Clinical Remission Based on Modified Mayo Score (mMS)The mMS is a composite score of 3 assessments consisting of stool frequency (SF), rectal bleeding (RB), and endoscopic score (ES). Each component sub-score ranges from 0 to 3 and total score range of the mMS is from 0 to 9, with higher scores indicating more severe disease. Clinical remission is defined as Mayo RB sub-score of 0, Mayo SF sub-score of 0 or 1, and ES sub-score 1 or 0 (score of 1 modified to exclude friability).At Weeks 48, 108, and 156 (current study)
Cohort 2: Percentage of UC Participants Achieving Clinical Response Based on mMSClinical response is defined as reduction from parent study baseline in mMS of \>=2 points and \>=30% from parent study baseline and a decrease from parent study baseline in the RB sub-score of \>=1 point or an absolute RB sub-score of \<=1 point.At Weeks 48, 108, and 156 (current study)
Cohort 2: Percentage of UC Participants Achieving a Symptomatic RemissionSymptomatic remission is defined as RB sub-score of 0 and SF sub-score of Mayo score \<=1.Up to Week 156 (current study)
Cohort 2: Percentage of UC Participants Achieving Endoscopic Improvement Based on Modified Mayo Endoscopic Sub-score (ES)Endoscopic improvement is defined as a modified Mayo ES of \<=1 (score of 1 modified to exclude friability).At Weeks 48, 108, and 156 (current study)
Cohort 2: Percentage of UC Participants Achieving Endoscopic Remission Based on Modified Mayo (ES)Endoscopic remission is defined as a modified Mayo ES of 0.At Weeks 48, 108, and 156 (current study)
Cohorts 1 and 2: Percentage of CD or UC Participants With no Bowel UrgencyBowel urgency is measured by the bowel urgency electronic diary (eDiary) item.Up to Week 156 (current study)
Cohorts 1 and 2: Percentage of UC or CD Participants With no Abdominal PainAbdominal pain is measured by abdominal pain eDiary item.Up to Week 156 (current study)
Cohorts 1 and 2: Change From Baseline in Fatigue in UC or CD Participants as Measured by the Functional Assessment of Chronic Illness Therapy - Fatigue (FACIT-Fatigue) ScoreThe FACIT-Fatigue is a reliable and valid instrument for measuring fatigue. The responses to the 13 items on the FACIT-Fatigue questionnaire are each measured on a 5-point Likert scale, where 0=Not at all, 1=A little bit, 2=Somewhat, 3=Quite a bit and 4=Very much. The total score ranges from 0 to 52. High scores represent less fatigue.Up to Week 156 (current study)
Cohorts 1 and 2: Percentage of UC or CD Participants With Inflammatory Bowel Disease Questionnaire (IBDQ) Total Score >=170The IBDQ is a 32-item questionnaire that measures 4 dimensions: bowel systems (10 items), emotional function (12 items), systemic function (5 items), and social function (5 items). The total score ranges from 32 to 224, with higher scores representing better quality of life.Up to Week 156 (current study)
Cohorts 1 and 2: Change From Baseline in Disease-Specific Health-related Quality of Life (HRQoL) in UC or CD Participants as Measured by IBDQ Total ScoreThe IBDQ is a 32-item questionnaire that measures 4 dimensions: bowel systems (10 items), emotional functional (12 items), systemic function (5 items), and social function (5 items). The total score ranges from 32 to 224, with higher scores representing better quality of life.Up to Week 156 (current study)