youngmon/atlassian-qna huggingface dataset:
How to pass a bash script array to Datacenter Jira Rest API when creating an issue
Asked by Ahmed Nadeem:

I have a bash script where I am storing some hostnames in a bash array which I read in from a file. I would then like to pass that array to the description on the jira I am trying to create using the Jira Server Rest API v2. However, with the following code, I keep getting an error. If someone can provide some guidance it'd be much appreciated.

```
counter=0
declare -a hosts
while read line
do
hosts[$counter]=$line
done < hostsfile.txt

curl --request POST --url 'https://myjiraurl.com/rest/api/2/issue' --header 'Authorization: Basic <auth_code>' --header 'Accept: application/json' --header 'Content-Type: application/json' --data '{ "fields": { "description": "This is an automated JIRA.\nHost List:'${hosts[@]}'", "issuetype": { "id": "10000" }, "project": { "id": "13806" }, "summary": "Host List" } }'
```

The error I am getting is

{"errorMessages":\["Unexpected end-of-input in VALUE_STRING\\n at \[Source: org.apache.catalina.connector.CoyoteInputStream@6bc37815; line: 1, column: 239\]"\]}curl: (7) Failed to connect to host1 port 80: Connection refused  
curl: (7) Failed to connect to host2 port 80: Connection refused  
curl: (7) Failed to connect to host3 port 80: Connection refused  
curl: (3) \[globbing\] unmatched close brace/bracket in column 106


Answers:
author: Jim Knepley - ReleaseTEAM
body: You've bumped up against bash quoting rules, which can be challenging. Regardless, I prefer to use *jq* to construct JSON data in scripts.

For example:

```
HOSTS=$(tr "\n" " " < hostsfile.txt | sed 's/ $//')
DATA_JSON=$(jq --null-input --compact-output --arg hostlist "${HOSTS}" \
'{"fields":{"description":("Host List: "+$hostlist),"issuetype":{"id":"10000"},"project":{"id":"13806"},"summary":"Host List"}}')
```

comments: author: Ahmed Nadeem
body: This worked, thanks much!


Tags: data-center

jira-data-center
Sending notifications for changes in a project
Asked by Adebayo, Daniel:

With constant changes happening in my project i want to know if I can get notifications if there are any updates that happens in the projects


Answers:
author: Yuliia_Borivets__SaaSJet_
body: Hi [@Adebayo, Daniel](/t5/user/viewprofilepage/user-id/5580864)

If you want to get specific changes like status, assignee, priority, etc, you can use Jira automation and send it to email.

Example for status:

*I want to receive emails every time an issue in my project goes to the status "Done".*

Here is how the automation rule will look:

**Trigger ? WHEN:**Issue transitioned

**Condition ? IF:** Issue matches JQL

status CHANGED to Done

**Action ? THEN:**Send email

\*Choose the assignee and subject

If you want to create a custom report to overview all issue changes in your project, you can try [Issue History for Jira](https://marketplace.atlassian.com/apps/1220385/issue-history?hosting=cloud&tab=overview&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Sending-notifications-for-changes-in-a-project_20240830) from my team.

You can find more details with screenshots for both cases in this article:

[Schedule emails to get issue changes in Jira](https://community.atlassian.com/t5/App-Central-articles/Schedule-emails-to-get-issue-changes-in-Jira/ba-p/2703601)


author: Chris Rainey
body: Hi there,

What kind of changes are you referring to? Can you give an example?


Tags: cloud

jira-cloud

jira-cloud-administration
Want to test a JIRA API call using JQL that will only retrieve the first record
Asked by Gus Gilbertson:

Want to test a JIRA API call using JQL that will only retrieve the first record

This limits excessive output, but enables verification that the API is returning data.


Answers:
author: Mohamed Benziane
body: Hi,

In some of the REST API, you have a limit parameter. You could use it to only retrieve on issue when using the API


Tags: data-center

jira-data-center
Is it possible to restrict what to add in description
Asked by Nidhi singh:

Hello team,

Can anyone know if we can restrict what to put in description field ?

I have an requirement in which client wants that user can only paste excel table inside description if issue type is Epic.


Answers:
author: shiva kumar Gosul
body: I don't think Jira restricts the Description field at the user level.


author: Nidhi singh
body: ![Screenshot 2024-08-30 230910.png](https://community.atlassian.com/t5/image/serverpage/image-id/344843iDC650E2008EFAA15/image-size/large?v=v2&px=999 "Screenshot 2024-08-30 230910.png")


Tags: cloud

jira-cloud
Import Button Moved
Asked by GlenellRosburg:

I am trying to import issues into Jira Cloud. The button has moved. I used to go to the Create screen and click import issues.  

I then found an instructional video ( that directed me to go to System \> External System Import. When I do this, I load my CSV file. But, I get directed to set up a new project. I don't have the option to import my issues into my existing project. How can I import stories into my existing project?  

I am using company-managed Jira Clous.


Answers:
author: Trudy Claspill
body: Hello [@GlenellRosburg](/t5/user/viewprofilepage/user-id/4760526)

You need to click on the link to use the old import experience to import data to an existing project.

![Screenshot 2024-08-30 at 2.56.17?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/344888i2FC4F35C02A63E33/image-size/large?v=v2&px=999 "Screenshot 2024-08-30 at 2.56.17?PM.png")

comments: author: GlenellRosburg
body: Thank you! This was the step I was missing. I am now able to import into my existing project.


author: GlenellRosburg
body: Thank you so much! This was the step I was missing. I am now able to import into my existing project.


Tags: cloud

jira-cloud
problem with chrome version 128
Asked by Eric:

issue types are showing up that should not be available to individuals when they create a jira. Problem started with upgrading to chrome 128.0.6613.36 . problem goes away when downgrade to v127. wondering if anyone else is having this problem?

*** ** * ** ***

![chrome_OSWWLOEi8i.gif](/t5/image/serverpage/image-id/344839iA6F7B124693E6C26/image-size/large?v=v2&px=999 "chrome_OSWWLOEi8i.gif")


Answers:
author: Benjamin
body: Hi. [@Eric Prunty](/t5/user/viewprofilepage/user-id/5580835)

Can't say that I have encounter this problem or work with others that have reported similar issue. Would clearing cache or using incognito help on version 128 for you?

comments: author: Eric
body: The root problem was the version of Scipt Runner we are using. Once that was updated the problem went away.


Tags: jira-unknown-hosting-type

unknown-hosting-type
Ability to combined View version report from several projects
Asked by Violet Baker:

I created a filter and a board to view all jiras across multiple projects. I would like to be able to view the version report across all projects shows team's progress towards the completion of a version.


Answers:
author: Hannes Obweger - JXL for Jira
body: Hi [@Violet Baker](/t5/user/viewprofilepage/user-id/598657)

welcome to the community!

Versions are generally "per project" in Jira, and consequently, Jira doesn't offer a dedicated cross-project version report. There is a concept of [cross-project versions in Advanced Roadmaps](https://support.atlassian.com/jira-software-cloud/docs/create-a-cross-project-release-in-advanced-roadmaps/) (which is part of Jira Premium), but I haven't used them myself in a while, so I can 't comment on the details.

Alternatively, if you're open to solutions from the Atlassian Marketplace, you'll have more options.

E.g., my team and I work on an app that I think you might like, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2799625).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you'd do in e.g. Excel or Google Sheets. It also comes with a number of advanced features, including support for *issue grouping* by any issue field(s) and *sum-ups.*

With these, you can build a cross-project version view like e.g. this in just a couple of clicks:

![cross-project-versions.gif](https://community.atlassian.com/t5/image/serverpage/image-id/346928i086F3B0CD8FEDC28/image-size/large?v=v2&px=999 "cross-project-versions.gif")

Note how the group for "v1" contains issues from project WORK as well as issues from project OKR. That's because both projects have a version with the name "v1".

Issue grouping and sum-ups also play well with JXL's other advanced features, such as configurable *issue hierarchies* or *conditional formatting* .

Any questions just let me know,

Best,

Hannes


author: Benjamin
body: HI [@Violet Baker](/t5/user/viewprofilepage/user-id/598657) ,

There isn't a straight forward way. Here's a similar post with some suggestions from our wonderful community members:

<https://community.atlassian.com/t5/Jira-Work-Management-Questions/Create-Release-across-multiple-projects/qaq-p/1875717>


Tags: cloud

jira-cloud

jira-software
Remove delete issue permission
Asked by AB:

The default permission scheme allows to delete issues to Service Desk Team. I am unable to remove the role Service Desk Team. How can I remove this permission for Service Desk Team role? ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/344822i38283E46737DB7EC/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Trudy Claspill
body: Hello [@AB](/t5/user/viewprofilepage/user-id/5183787)

Have you followed the guidance of the message; waiting for a time, refreshing the page, and trying again?

comments: author: AB
body: Yes, we did. But I am definitely going to wait a bit longer and try again. I just wanted to check with the community if it is actually doable since its a default scheme.


author: Trudy Claspill
body: Do you have only JSM available on your instance?

I have both Jira and JSM. I don't see a separate "default" permission scheme specifically for JSM projects in my instance. I do have a "Default permission scheme" but that applies only to new Jira projects, not JSM projects.

You won't have the option to Delete a default scheme that Jira/JSM has created out of the box, but you can modify them.


Tags: jira-unknown-hosting-type

jsm

permission

permission-scheme

unknown-hosting-type
Can fields be project specific on the issue search screen?
Asked by Rodney Estrada:

Hi All,

I'm 99% sure I know the answer is no so just want to confirm. Can the fields available under "**More+**" on the issue search screen be project specific when a project is selected?

Thanks,

![Issue_Search_Fields.png](https://community.atlassian.com/t5/image/serverpage/image-id/344816i3E93CEBB9F913941/image-size/large?v=v2&px=999 "Issue_Search_Fields.png")


Answers:
author: Trudy Claspill
body: Hello [@Rodney Estrada](/t5/user/viewprofilepage/user-id/4727628)

You are correct, the answer is no.


Tags: cloud

jira-cloud
How to set field read-only according to status of the issue type.
Asked by vamsidhar:

Consider Jira issue type called "Task".

Let's take a custom field called "Test"

When the Task is in Submitted state. -- "Test" field should be read-only

When the Task is in Planned state. --"Test" field should be read-only

When the Task is in Ready for review state. -- "Test" field should be read-only.

When the Task is in Review in progress state. -- "Test" field should be editable.

When the Task is in follow-up state. -- "Test" field should be editable.

When the Task is in closed state. -- "Test" field should be read-only.

![Screenshot 2024-08-30 200744.png](/t5/image/serverpage/image-id/344794i699904A9A9544421/image-size/large?v=v2&px=999 "Screenshot 2024-08-30 200744.png")


Answers:
author: Mohamed Benziane
body: Hi,

You'll need an addon like Behaviour (scriptrunner) to achieve this

comments: author: vamsidhar
body: Through Behaviour (scriptrunner) how can i acheive this.

Please let me know in detail. i have Behaviour (scriptrunner)


author: vamsidhar
body: [@Mohamed Benziane](/t5/user/viewprofilepage/user-id/1531125) Can you please help me on this


Tags: admin

cloud

jira-cloud
How can I get historical data for REQ or epic or bug?
Asked by Sam:

Hi there,

Is there a way for Jira to pull out all the historical data for a REQ, epic or bug? For example I would like to know all the state transitions from "in progress" to "open" and back to "in progress" and so on including its time stamps. I had read somewhere that for each req, epic of bug, Jira keeps a change log. Is there a way to query that change log? Ultimately what I am attempting to do is to get a complete history of specific fields for my req and obtain a csv dump that will allow me to do more detailed low level analysis on the req. In previous tools that I have used this was possible to do where each change appeared as a separate row in the csv dump. I am not looking for an API solution or one where I would need to individually go through the history section of all the REQs, epics or bug which are in the thousands. Any help would be much appreciated.  

Regards  
Sam


Answers:
author: Yuliia_Borivets__SaaSJet_
body: Hi [@Sam](/t5/user/viewprofilepage/user-id/5580705)

With JQL it's possible to search for history of transitions like =\> status changed FROM "In Progress" TO "Open". However, as far as I know, it won't show timestamps for each change. So, it is not possible to achieve this with native JQL alone.

You can search for some apps that can enhance this functionality if you are open to thirds-party apps.

The one that can help in this case is developed by my team. It's called [Issue History for Jira](https://marketplace.atlassian.com/apps/1220385/issue-history?hosting=cloud&tab=overview&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_How-can-I-get-historical-data-for-REQ-or-epic-or-bugr_20240830) and provides timestamps for every change.

*1. You can write JQL to include issuetypes you need (req, epic, bug).*

*2. Select transitions you are interested in.*

*3. Get the report and export it as an SCV file.*

![status transitions jira.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/344871i849EBD3276FC5673/image-size/large?v=v2&px=999 "status transitions jira.jpg")

The app is free for teams of up to 10 users, and there is a free trial.


Tags: cloud

jira-cloud
change permissions in free version - atlassian-addons-project-access
Asked by Sally Sattary:

We have the free version of JIRA as there are currently only 5 of us, but we want to use

[https://marketplace.atlassian.com/apps/1219592/github-for-jira?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1219592/github-for-jira?hosting=cloud&tab=overview)

We cannot use it without setting the project role: atlassian-addons-project-access

As we are using the free version, permissions and roles aren't an option. How can we globally give everyone that role so we can use the app?


Answers:
author: Trudy Claspill
body: Hello [@Sally Sattary](/t5/user/viewprofilepage/user-id/5580710)

Welcome to the Atlassian community.

What change do you think you need to make, specifically?

That role is not given to people. That is the role to which apps add their app-specific custom user to gain the permissions they need to function.

In a Free subscription all the user to whom you grant access to Jira are implicitly granted Project Administrator permissions to all projects. So the users should have all the permissions they need already.

comments: author: Sally Sattary
body: So I want to add the development field (from the Plugin) to the ticket so that we can use it, but when I try to do that it's not possible. This is why I believe it's a permissions issue  

![Screenshot 2024-08-30 170642.png](https://community.atlassian.com/t5/image/serverpage/image-id/344823i04F46828354A7EF4/image-size/large?v=v2&px=999 "Screenshot 2024-08-30 170642.png")


author: Trudy Claspill
body: You cannot add a user to that Role. It is an internal-use-only construct.

Based on the screen image you provided it appears that this relates to a Jira Service Management project. Is that correct?

And is it a Company Managed project or a Team Managed project?

Can you show us the View Development Tools permissions in the Permission Scheme for that project? In my Free instance, for a Company Managed JSM project, that permission is allocated to the addons group and also to the Administrators group.


author: Sally Sattary
body: Hi Trudy  
It's a Team managed business project. These are the screens I can share regarding the group level  

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/345136i763E80E54474644F/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/345132i65FB514C1F8A6B23/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/345137i699155ECD9242271/image-size/large?v=v2&px=999 "image.png")


author: Trudy Claspill
body: Adding the Development panel to a Business project is not currently supported. Refer to this open issue:

<https://jira.atlassian.com/browse/JWMCLOUD-424>


Tags: cloud

github

jira-cloud
Resolved Changes are not getting crossed out
Asked by spacesas:

Hi,

I am having problems with issues/tasks (specifically change requests) not being crossed out when they are closed. Both the status and the **resolution** are marked as "Done" through the transition post functions, I have also attempted it by setting the transition to a resolution screen.

Currently the cross-through does not show on any of the related queues, however I do see the changes crossed out in some miscellaneous areas such as the "Activity Stream".

Would be great to know what the issue may be.

Thanks.


Answers:
author: Joe Pitt
body: Is it the SYSTEM resolution field?

I have seen systems were someone added a resolution field with just a few options, and that Jira doesn't see that as resolved.

Please verify it is the system field and post a screenshot.

comments: author: spacesas
body: Yes I believe it is the system resolution field that you are speaking about, it is not a field that I have added, shows "Done" with a tick next to the actual status. Screenshot below.

![resolution.png](https://community.atlassian.com/t5/image/serverpage/image-id/344815iD474C91878E93CEF/image-size/large?v=v2&px=999 "resolution.png")


author: Joe Pitt
body: ![resolved issue.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/344827iADE90A7BB64311B0/image-size/large?v=v2&px=999 "resolved issue.PNG")

I'm not on service management. But in the software version, when you view the issue it should look like this the field name Resolution: followed by they resolution reason.


author: spacesas
body: Can confirm from what i've looked up that the Resolution in Service Management is shown as seen in my screenshot above.


Tags: cloud

jira-service-management

jira-service-management-cloud
How can I make the subtask due date appear next to the assignee's name?
Asked by Melanie Calothi:

When I've worked in Jira previously, I've always been able to see the due date in subtasks alongside the initials of the assignee. This doesn't seem possible in the Jira project I'm working in. I've gone to the configure page to try and figure it out but no luck. Can anyone assist?

![Screenshot 2024-08-30 at 15.53.08.png](/t5/image/serverpage/image-id/344791iDD1A83BC0C6FECD3/image-size/large?v=v2&px=999 "Screenshot 2024-08-30 at 15.53.08.png")


Answers:
author: Sreenivasaraju P
body: Hi [@Melanie Calothi](/t5/user/viewprofilepage/user-id/5580690) ,

As per my knowledge this feature is not available in jira cloud. We can't configure subtask columns on the parent task.

There is already open suggestion with Atlassian. Please check.

<https://jira.atlassian.com/browse/JRACLOUD-70206>

comments: author: Melanie Calothi
body: Thank you kindly! Appreciate the swift feedback.


author: Manoj Gangwar
body: Hi [@Melanie Calothi](/t5/user/viewprofilepage/user-id/5580690) ,

Welcome to the Atlassian Community!

~~As a Jira admin you can configure which fields are being displayed by editing the value of `jira.table.cols.subtasks, see `<https://confluence.atlassian.com/adminjiraserver/configuring-sub-tasks-938847874.html>~~

The above workaround worked previously but now it's not working.

I found a Suggestion request for the same.

<https://jira.atlassian.com/browse/JRACLOUD-70206>


author: Hannes Obweger - JXL for Jira
body: Hi [@Melanie Calothi](/t5/user/viewprofilepage/user-id/5580690)

welcome to the community!

as already suggested, this isn't currently possible, however if you're open to solutions from the Atlassian Marketplace, you should get pretty close; see e.g. [this thread](https://community.atlassian.com/t5/Jira-Software-questions/Edit-Epic-Child-Issues-view/qaq-p/2253943) for possible directions forward.

Best, Hannes


Tags: cloud

jira-cloud

jira-software

subtasks
Why I am not able to create workflow? --->if workflow have double whitespaces
Asked by Ravi Prasad:

When I am trying to create new workflow in JIRA , workflow name have double whitespaces. I have tried through API and UI. It's giving an the below error.![Screenshot from 2024-08-30 19-04-17.png](/t5/image/serverpage/image-id/344789i7950C33FA6822196/image-size/large?v=v2&px=999 "Screenshot from 2024-08-30 19-04-17.png")


Answers:
author: Rebekka Heilmann _viadee_
body: The error message is quite self-explanatory. You have multiple white spaces in a row which Jira doesn't like apparently.

Could you not just remove the second white space or use a different seperator like "-" or "_" ?


author: Manoj Gangwar
body: Hi [@Ravi Prasad](/t5/user/viewprofilepage/user-id/5370025) ,

Please refer to the below document.

<https://confluence.atlassian.com/jirakb/unable-to-perform-the-copy-operation-for-the-workflow-1332808846.html>

comments: author: Manoj Gangwar
body: [@Ravi Prasad](/t5/user/viewprofilepage/user-id/5370025) If our responses were helpful please consider clicking on the Accept Answer buttons to mark your Question as Solved.


Tags: cloud

jira-cloud
Why can't import ira cloud backup to a new organization?
Asked by Alaa Kassem:

I made a cloud backup from an organization and while trying to import it to another organization this error occurred i don't know why? It was worked normally before  
Error:

**Import error**

There was an error importing file jira-export (4).zip. Please try again or choose a different file.


Answers:
author: Cristian IONESCU
body: Hi Alaa,

Try to rename the file to a simpler name (e.g., `jira-export.zip`), ensuring there are no special characters or spaces. Also, verify that the ZIP file contains all required files and directories.

comments: author: Alaa Kassem
body: Thanks [@Cristian IONESCU](/t5/user/viewprofilepage/user-id/5123296) for your response. I already renamed it to the default name "jira-export.zip" and the issue is still exist


author: Marc - Devoteam
body: Hi [@Alaa Kassem](/t5/user/viewprofilepage/user-id/5580636)

Please reach out to Atlassian Support, they can look at the instance and the logging, to see what could be an issue here.

comments: author: Alaa Kassem
body: OK, thank [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) I'll do that


Tags: cloud

jira-cloud
How can I change the way Issue Collector button shows and functions
Asked by samantha_sharkov:

Hello community,

I am struggling with two issues:

1. The embedded button of the Issue Collector on a Google Website is too small and I can't change it's size.

2. When I click on the button on the same website it opens an embedded tiny window which is completely unusable.

Thanks in advance!![issue collector 2.jpg](/t5/image/serverpage/image-id/257023i212485AE56D4F3F4/image-size/large?v=v2&px=999 "issue collector 2.jpg")![issue collector 1.jpg](/t5/image/serverpage/image-id/257024i6FC02F2A7C022B10/image-size/large?v=v2&px=999 "issue collector 1.jpg")


Answers:
author: samantha_sharkov
body: A lot of views but no answers. :) Any community leaders, please?


Tags: cloud

jira-work-management-cloud